OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2483 | 2483 |
2484 // Leave the frame and return popping the arguments and the | 2484 // Leave the frame and return popping the arguments and the |
2485 // receiver. | 2485 // receiver. |
2486 frame_->Exit(); | 2486 frame_->Exit(); |
2487 masm_->ret((scope_->num_parameters() + 1) * kPointerSize); | 2487 masm_->ret((scope_->num_parameters() + 1) * kPointerSize); |
2488 DeleteFrame(); | 2488 DeleteFrame(); |
2489 | 2489 |
2490 #ifdef ENABLE_DEBUGGER_SUPPORT | 2490 #ifdef ENABLE_DEBUGGER_SUPPORT |
2491 // Check that the size of the code used for returning matches what is | 2491 // Check that the size of the code used for returning matches what is |
2492 // expected by the debugger. | 2492 // expected by the debugger. |
2493 ASSERT_EQ(Debug::kIa32JSReturnSequenceLength, | 2493 ASSERT_EQ(Assembler::kJSReturnSequenceLength, |
2494 masm_->SizeOfCodeGeneratedSince(&check_exit_codesize)); | 2494 masm_->SizeOfCodeGeneratedSince(&check_exit_codesize)); |
2495 #endif | 2495 #endif |
2496 } | 2496 } |
2497 | 2497 |
2498 | 2498 |
2499 void CodeGenerator::VisitWithEnterStatement(WithEnterStatement* node) { | 2499 void CodeGenerator::VisitWithEnterStatement(WithEnterStatement* node) { |
2500 ASSERT(!in_spilled_code()); | 2500 ASSERT(!in_spilled_code()); |
2501 Comment cmnt(masm_, "[ WithEnterStatement"); | 2501 Comment cmnt(masm_, "[ WithEnterStatement"); |
2502 CodeForStatementPosition(node); | 2502 CodeForStatementPosition(node); |
2503 Load(node->expression()); | 2503 Load(node->expression()); |
(...skipping 5664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8168 | 8168 |
8169 int CompareStub::MinorKey() { | 8169 int CompareStub::MinorKey() { |
8170 // Encode the two parameters in a unique 16 bit value. | 8170 // Encode the two parameters in a unique 16 bit value. |
8171 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); | 8171 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); |
8172 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); | 8172 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); |
8173 } | 8173 } |
8174 | 8174 |
8175 #undef __ | 8175 #undef __ |
8176 | 8176 |
8177 } } // namespace v8::internal | 8177 } } // namespace v8::internal |
OLD | NEW |