Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: src/api.cc

Issue 612043002: Add a getter for the address and size of the code range to the pulic API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | src/heap/spaces.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « include/v8.h ('k') | src/heap/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698