Chromium Code Reviews| 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]); |
| } |
| } |