| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 12231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12242 isolate->Dispose(); | 12242 isolate->Dispose(); |
| 12243 } | 12243 } |
| 12244 | 12244 |
| 12245 | 12245 |
| 12246 TEST(SetFunctionEntryHook) { | 12246 TEST(SetFunctionEntryHook) { |
| 12247 // FunctionEntryHook does not work well with experimental natives. | 12247 // FunctionEntryHook does not work well with experimental natives. |
| 12248 // Experimental natives are compiled during snapshot deserialization. | 12248 // Experimental natives are compiled during snapshot deserialization. |
| 12249 // This test breaks because InstallGetter (function from snapshot that | 12249 // This test breaks because InstallGetter (function from snapshot that |
| 12250 // only gets called from experimental natives) is compiled with entry hooks. | 12250 // only gets called from experimental natives) is compiled with entry hooks. |
| 12251 i::FLAG_allow_natives_syntax = true; | 12251 i::FLAG_allow_natives_syntax = true; |
| 12252 i::FLAG_turbo_inlining = false; |
| 12252 i::FLAG_use_inlining = false; | 12253 i::FLAG_use_inlining = false; |
| 12253 | 12254 |
| 12254 SetFunctionEntryHookTest test; | 12255 SetFunctionEntryHookTest test; |
| 12255 test.RunTest(); | 12256 test.RunTest(); |
| 12256 } | 12257 } |
| 12257 | 12258 |
| 12258 | 12259 |
| 12259 static i::HashMap* code_map = NULL; | 12260 static i::HashMap* code_map = NULL; |
| 12260 static i::HashMap* jitcode_line_info = NULL; | 12261 static i::HashMap* jitcode_line_info = NULL; |
| 12261 static int saw_bar = 0; | 12262 static int saw_bar = 0; |
| (...skipping 9677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21939 LocalContext env; | 21940 LocalContext env; |
| 21940 | 21941 |
| 21941 env->Global()->Set(v8_str("keys"), v8::Array::GetKeysIterator(isolate)); | 21942 env->Global()->Set(v8_str("keys"), v8::Array::GetKeysIterator(isolate)); |
| 21942 env->Global()->Set(v8_str("values"), v8::Array::GetValuesIterator(isolate)); | 21943 env->Global()->Set(v8_str("values"), v8::Array::GetValuesIterator(isolate)); |
| 21943 env->Global()->Set(v8_str("entries"), v8::Array::GetEntriesIterator(isolate)); | 21944 env->Global()->Set(v8_str("entries"), v8::Array::GetEntriesIterator(isolate)); |
| 21944 | 21945 |
| 21945 ExpectString("typeof keys", "function"); | 21946 ExpectString("typeof keys", "function"); |
| 21946 ExpectString("typeof values", "function"); | 21947 ExpectString("typeof values", "function"); |
| 21947 ExpectString("typeof entries", "function"); | 21948 ExpectString("typeof entries", "function"); |
| 21948 } | 21949 } |
| OLD | NEW |