diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-06-29 17:26:51 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-06-29 17:26:51 +0200 |
commit | 33af2720f26c2b25bc7f75ce7eb454ff99db6d35 (patch) | |
tree | 9a38f0c96420edf503eebd6325dd8d2d8249f653 /deps/v8/src/safepoint-table.h | |
parent | 6afdca885adeeeed9eef8cbb01c3d97af0bc084d (diff) | |
download | android-node-v8-33af2720f26c2b25bc7f75ce7eb454ff99db6d35.tar.gz android-node-v8-33af2720f26c2b25bc7f75ce7eb454ff99db6d35.tar.bz2 android-node-v8-33af2720f26c2b25bc7f75ce7eb454ff99db6d35.zip |
Upgrade V8 to 3.4.8
Diffstat (limited to 'deps/v8/src/safepoint-table.h')
-rw-r--r-- | deps/v8/src/safepoint-table.h | 13 |
1 files changed, 10 insertions, 3 deletions
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); |