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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 SetSourcePosition(function()->end_position() - 1); | 429 SetSourcePosition(function()->end_position() - 1); |
430 __ RecordJSReturn(); | 430 __ RecordJSReturn(); |
431 // Do not use the leave instruction here because it is too short to | 431 // Do not use the leave instruction here because it is too short to |
432 // patch with the code required by the debugger. | 432 // patch with the code required by the debugger. |
433 __ mov(esp, ebp); | 433 __ mov(esp, ebp); |
434 int no_frame_start = masm_->pc_offset(); | 434 int no_frame_start = masm_->pc_offset(); |
435 __ pop(ebp); | 435 __ pop(ebp); |
436 | 436 |
437 int arguments_bytes = (info_->scope()->num_parameters() + 1) * kPointerSize; | 437 int arguments_bytes = (info_->scope()->num_parameters() + 1) * kPointerSize; |
438 __ Ret(arguments_bytes, ecx); | 438 __ Ret(arguments_bytes, ecx); |
439 #ifdef ENABLE_DEBUGGER_SUPPORT | |
440 // Check that the size of the code used for returning is large enough | 439 // Check that the size of the code used for returning is large enough |
441 // for the debugger's requirements. | 440 // for the debugger's requirements. |
442 ASSERT(Assembler::kJSReturnSequenceLength <= | 441 ASSERT(Assembler::kJSReturnSequenceLength <= |
443 masm_->SizeOfCodeGeneratedSince(&check_exit_codesize)); | 442 masm_->SizeOfCodeGeneratedSince(&check_exit_codesize)); |
444 #endif | |
445 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); | 443 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); |
446 } | 444 } |
447 } | 445 } |
448 | 446 |
449 | 447 |
450 void FullCodeGenerator::EffectContext::Plug(Variable* var) const { | 448 void FullCodeGenerator::EffectContext::Plug(Variable* var) const { |
451 ASSERT(var->IsStackAllocated() || var->IsContextSlot()); | 449 ASSERT(var->IsStackAllocated() || var->IsContextSlot()); |
452 } | 450 } |
453 | 451 |
454 | 452 |
(...skipping 4470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4925 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4923 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4926 Assembler::target_address_at(call_target_address, | 4924 Assembler::target_address_at(call_target_address, |
4927 unoptimized_code)); | 4925 unoptimized_code)); |
4928 return OSR_AFTER_STACK_CHECK; | 4926 return OSR_AFTER_STACK_CHECK; |
4929 } | 4927 } |
4930 | 4928 |
4931 | 4929 |
4932 } } // namespace v8::internal | 4930 } } // namespace v8::internal |
4933 | 4931 |
4934 #endif // V8_TARGET_ARCH_IA32 | 4932 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |