| 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 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 CheckDebugBreakFunction( | 1083 CheckDebugBreakFunction( |
| 1084 &env, | 1084 &env, |
| 1085 "function f5(){var index='propertyName'; var a={}; return a[index];}", | 1085 "function f5(){var index='propertyName'; var a={}; return a[index];}", |
| 1086 "f5", | 1086 "f5", |
| 1087 0, | 1087 0, |
| 1088 v8::internal::RelocInfo::CODE_TARGET, | 1088 v8::internal::RelocInfo::CODE_TARGET, |
| 1089 Isolate::Current()->builtins()->builtin( | 1089 Isolate::Current()->builtins()->builtin( |
| 1090 Builtins::kKeyedLoadIC_DebugBreak)); | 1090 Builtins::kKeyedLoadIC_DebugBreak)); |
| 1091 #endif | 1091 #endif |
| 1092 | 1092 |
| 1093 CheckDebugBreakFunction( |
| 1094 &env, |
| 1095 "function f6(a){return a==null;}", |
| 1096 "f6", |
| 1097 0, |
| 1098 v8::internal::RelocInfo::CODE_TARGET, |
| 1099 Isolate::Current()->builtins()->builtin( |
| 1100 Builtins::kCompareNilIC_DebugBreak)); |
| 1101 |
| 1093 // Check the debug break code stubs for call ICs with different number of | 1102 // Check the debug break code stubs for call ICs with different number of |
| 1094 // parameters. | 1103 // parameters. |
| 1095 Handle<Code> debug_break_0 = v8::internal::ComputeCallDebugBreak(0); | 1104 Handle<Code> debug_break_0 = v8::internal::ComputeCallDebugBreak(0); |
| 1096 Handle<Code> debug_break_1 = v8::internal::ComputeCallDebugBreak(1); | 1105 Handle<Code> debug_break_1 = v8::internal::ComputeCallDebugBreak(1); |
| 1097 Handle<Code> debug_break_4 = v8::internal::ComputeCallDebugBreak(4); | 1106 Handle<Code> debug_break_4 = v8::internal::ComputeCallDebugBreak(4); |
| 1098 | 1107 |
| 1099 CheckDebugBreakFunction(&env, | 1108 CheckDebugBreakFunction(&env, |
| 1100 "function f4_0(){x();}", "f4_0", | 1109 "function f4_0(){x();}", "f4_0", |
| 1101 0, | 1110 0, |
| 1102 v8::internal::RelocInfo::CODE_TARGET_CONTEXT, | 1111 v8::internal::RelocInfo::CODE_TARGET_CONTEXT, |
| (...skipping 6428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7531 TEST(LiveEditDisabled) { | 7540 TEST(LiveEditDisabled) { |
| 7532 v8::internal::FLAG_allow_natives_syntax = true; | 7541 v8::internal::FLAG_allow_natives_syntax = true; |
| 7533 LocalContext env; | 7542 LocalContext env; |
| 7534 v8::HandleScope scope(env->GetIsolate()); | 7543 v8::HandleScope scope(env->GetIsolate()); |
| 7535 v8::Debug::SetLiveEditEnabled(false); | 7544 v8::Debug::SetLiveEditEnabled(false); |
| 7536 CompileRun("%LiveEditCompareStrings('', '')"); | 7545 CompileRun("%LiveEditCompareStrings('', '')"); |
| 7537 } | 7546 } |
| 7538 | 7547 |
| 7539 | 7548 |
| 7540 #endif // ENABLE_DEBUGGER_SUPPORT | 7549 #endif // ENABLE_DEBUGGER_SUPPORT |
| OLD | NEW |