Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index bda34bdfacacbb369f5e8db2b18d03c6f38b1ec7..e8190bdefb6ee0a96c06fdd04a6c105a56c02185 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6813,6 +6813,18 @@ void v8::Isolate::SetStackLimit(uintptr_t stack_limit) { |
} |
+void v8::Isolate::GetCodeRange(void** start, size_t* length_in_bytes) { |
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this); |
+ if (isolate->code_range() && isolate->code_range()->valid()) { |
Sven Panne
2014/09/29 11:41:51
I think the first part of the conjunction will alw
jochen (gone - plz use gerrit)
2014/09/29 11:43:17
no, we only create a code range on 64bit
Sven Panne
2014/09/29 11:48:25
I think we *always* create a CodeRange, but it's o
|
+ *start = isolate->code_range()->start(); |
+ *length_in_bytes = isolate->code_range()->size(); |
+ } else { |
+ *start = NULL; |
+ *length_in_bytes = 0; |
+ } |
+} |
+ |
+ |
String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj) |
: str_(NULL), length_(0) { |
i::Isolate* isolate = i::Isolate::Current(); |