From 33af2720f26c2b25bc7f75ce7eb454ff99db6d35 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 29 Jun 2011 17:26:51 +0200 Subject: Upgrade V8 to 3.4.8 --- deps/v8/src/safepoint-table.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'deps/v8/src/safepoint-table.h') diff --git a/deps/v8/src/safepoint-table.h b/deps/v8/src/safepoint-table.h index 8803d06f5b..de537f9828 100644 --- a/deps/v8/src/safepoint-table.h +++ b/deps/v8/src/safepoint-table.h @@ -28,11 +28,10 @@ #ifndef V8_SAFEPOINT_TABLE_H_ #define V8_SAFEPOINT_TABLE_H_ -#include "v8.h" - +#include "allocation.h" #include "heap.h" +#include "v8memory.h" #include "zone.h" -#include "zone-inl.h" namespace v8 { namespace internal { @@ -228,6 +227,14 @@ class SafepointTableBuilder BASE_EMBEDDED { deoptimization_info_[index].pc_after_gap = pc; } + // Get the end pc offset of the last safepoint, including the code generated + // until the end of the gap following it. + unsigned GetPcAfterGap() { + int index = deoptimization_info_.length(); + if (index == 0) return 0; + return deoptimization_info_[index - 1].pc_after_gap; + } + // Emit the safepoint table after the body. The number of bits per // entry must be enough to hold all the pointer indexes. void Emit(Assembler* assembler, int bits_per_entry); -- cgit v1.2.1