| 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 3776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3787 __ bind(&return_result); | 3787 __ bind(&return_result); |
| 3788 // Drop temp values from the stack, and restore context register. | 3788 // Drop temp values from the stack, and restore context register. |
| 3789 __ addq(rsp, Immediate(3 * kPointerSize)); | 3789 __ addq(rsp, Immediate(3 * kPointerSize)); |
| 3790 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); | 3790 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); |
| 3791 context()->Plug(rax); | 3791 context()->Plug(rax); |
| 3792 } | 3792 } |
| 3793 | 3793 |
| 3794 | 3794 |
| 3795 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { | 3795 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
| 3796 Handle<String> name = expr->name(); | 3796 Handle<String> name = expr->name(); |
| 3797 if (name->length() > 0 && name->Get(0) == '_') { | 3797 if (name->length() > 1 && name->Get(0) == '_' && name->Get(1) == '_') { |
| 3798 Comment cmnt(masm_, "[ InlineRuntimeCall"); | 3798 Comment cmnt(masm_, "[ InlineRuntimeCall"); |
| 3799 EmitInlineRuntimeCall(expr); | 3799 EmitInlineRuntimeCall(expr); |
| 3800 return; | 3800 return; |
| 3801 } | 3801 } |
| 3802 | 3802 |
| 3803 Comment cmnt(masm_, "[ CallRuntime"); | 3803 Comment cmnt(masm_, "[ CallRuntime"); |
| 3804 ZoneList<Expression*>* args = expr->arguments(); | 3804 ZoneList<Expression*>* args = expr->arguments(); |
| 3805 | 3805 |
| 3806 if (expr->is_jsruntime()) { | 3806 if (expr->is_jsruntime()) { |
| 3807 // Prepare for calling JS runtime function. | 3807 // Prepare for calling JS runtime function. |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4526 *context_length = 0; | 4526 *context_length = 0; |
| 4527 return previous_; | 4527 return previous_; |
| 4528 } | 4528 } |
| 4529 | 4529 |
| 4530 | 4530 |
| 4531 #undef __ | 4531 #undef __ |
| 4532 | 4532 |
| 4533 } } // namespace v8::internal | 4533 } } // namespace v8::internal |
| 4534 | 4534 |
| 4535 #endif // V8_TARGET_ARCH_X64 | 4535 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |