| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 ASSERT_EQ(kCallInstruction, *(call_target_address - 1)); | 239 ASSERT_EQ(kCallInstruction, *(call_target_address - 1)); |
| 240 if (*(call_target_address - 3) == kNopByteOne) { | 240 if (*(call_target_address - 3) == kNopByteOne) { |
| 241 ASSERT_EQ(kNopByteTwo, *(call_target_address - 2)); | 241 ASSERT_EQ(kNopByteTwo, *(call_target_address - 2)); |
| 242 Code* osr_builtin = | 242 Code* osr_builtin = |
| 243 isolate->builtins()->builtin(Builtins::kOnStackReplacement); | 243 isolate->builtins()->builtin(Builtins::kOnStackReplacement); |
| 244 ASSERT_EQ(osr_builtin->entry(), | 244 ASSERT_EQ(osr_builtin->entry(), |
| 245 Assembler::target_address_at(call_target_address)); | 245 Assembler::target_address_at(call_target_address)); |
| 246 return PATCHED_FOR_OSR; | 246 return PATCHED_FOR_OSR; |
| 247 } else { | 247 } else { |
| 248 // Get the interrupt stub code object to match against from cache. | 248 // Get the interrupt stub code object to match against from cache. |
| 249 Code* interrupt_code = NULL; | 249 Code* interrupt_builtin = |
| 250 InterruptStub stub; | 250 isolate->builtins()->builtin(Builtins::kInterruptCheck); |
| 251 if (!stub.FindCodeInCache(&interrupt_code, isolate)) UNREACHABLE(); | 251 ASSERT_EQ(interrupt_builtin->entry(), |
| 252 ASSERT_EQ(interrupt_code->entry(), | |
| 253 Assembler::target_address_at(call_target_address)); | 252 Assembler::target_address_at(call_target_address)); |
| 254 ASSERT_EQ(kJnsInstruction, *(call_target_address - 3)); | 253 ASSERT_EQ(kJnsInstruction, *(call_target_address - 3)); |
| 255 ASSERT_EQ(kJnsOffset, *(call_target_address - 2)); | 254 ASSERT_EQ(kJnsOffset, *(call_target_address - 2)); |
| 256 return NOT_PATCHED; | 255 return NOT_PATCHED; |
| 257 } | 256 } |
| 258 } | 257 } |
| 259 #endif // DEBUG | 258 #endif // DEBUG |
| 260 | 259 |
| 261 | 260 |
| 262 static int LookupBailoutId(DeoptimizationInputData* data, BailoutId ast_id) { | 261 static int LookupBailoutId(DeoptimizationInputData* data, BailoutId ast_id) { |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 SetFrameSlot(offset, value); | 713 SetFrameSlot(offset, value); |
| 715 } | 714 } |
| 716 | 715 |
| 717 | 716 |
| 718 #undef __ | 717 #undef __ |
| 719 | 718 |
| 720 | 719 |
| 721 } } // namespace v8::internal | 720 } } // namespace v8::internal |
| 722 | 721 |
| 723 #endif // V8_TARGET_ARCH_IA32 | 722 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |