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

Unified Diff: src/runtime/runtime.cc

Issue 1306993003: Call JS functions via native context instead of js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: separated context slot lookup Created 5 years, 4 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
Index: src/runtime/runtime.cc
diff --git a/src/runtime/runtime.cc b/src/runtime/runtime.cc
index a490327af5266b5aac5e4cbe99a0f73cfa0a4797..30cd069953de35ece29c73248210349fb12d13f8 100644
--- a/src/runtime/runtime.cc
+++ b/src/runtime/runtime.cc
@@ -4,6 +4,7 @@
#include "src/runtime/runtime.h"
+#include "src/contexts.h"
#include "src/handles-inl.h"
#include "src/heap/heap.h"
#include "src/isolate.h"
@@ -41,9 +42,10 @@ FOR_EACH_INTRINSIC_RETURN_PAIR(P)
} \
,
-
static const Runtime::Function kIntrinsicFunctions[] = {
- FOR_EACH_INTRINSIC(F) FOR_EACH_INTRINSIC(I)};
+ FOR_EACH_INTRINSIC(F)
+ FOR_EACH_INTRINSIC(I)
+};
#undef I
#undef F
@@ -79,7 +81,8 @@ const Runtime::Function* Runtime::FunctionForName(Handle<String> name) {
const Runtime::Function* Runtime::FunctionForEntry(Address entry) {
for (size_t i = 0; i < arraysize(kIntrinsicFunctions); ++i) {
- if (entry == kIntrinsicFunctions[i].entry) {
+ if (kIntrinsicFunctions[i].intrinsic_type == RUNTIME &&
Michael Starzinger 2015/08/26 09:43:22 Is this needed? This looks fishy to me!
Yang 2015/08/26 10:27:30 Done.
+ entry == kIntrinsicFunctions[i].entry) {
return &(kIntrinsicFunctions[i]);
}
}

Powered by Google App Engine
This is Rietveld 408576698