| 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 3775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3786 // Drop temp values from the stack, and restore context register. | 3786 // Drop temp values from the stack, and restore context register. |
| 3787 __ add(esp, Immediate(3 * kPointerSize)); | 3787 __ add(esp, Immediate(3 * kPointerSize)); |
| 3788 | 3788 |
| 3789 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); | 3789 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
| 3790 context()->Plug(eax); | 3790 context()->Plug(eax); |
| 3791 } | 3791 } |
| 3792 | 3792 |
| 3793 | 3793 |
| 3794 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { | 3794 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
| 3795 Handle<String> name = expr->name(); | 3795 Handle<String> name = expr->name(); |
| 3796 if (name->length() > 0 && name->Get(0) == '_') { | 3796 if (name->length() > 1 && name->Get(0) == '_' && name->Get(1) == '_') { |
| 3797 Comment cmnt(masm_, "[ InlineRuntimeCall"); | 3797 Comment cmnt(masm_, "[ InlineRuntimeCall"); |
| 3798 EmitInlineRuntimeCall(expr); | 3798 EmitInlineRuntimeCall(expr); |
| 3799 return; | 3799 return; |
| 3800 } | 3800 } |
| 3801 | 3801 |
| 3802 Comment cmnt(masm_, "[ CallRuntime"); | 3802 Comment cmnt(masm_, "[ CallRuntime"); |
| 3803 ZoneList<Expression*>* args = expr->arguments(); | 3803 ZoneList<Expression*>* args = expr->arguments(); |
| 3804 | 3804 |
| 3805 if (expr->is_jsruntime()) { | 3805 if (expr->is_jsruntime()) { |
| 3806 // Prepare for calling JS runtime function. | 3806 // Prepare for calling JS runtime function. |
| (...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4526 *stack_depth = 0; | 4526 *stack_depth = 0; |
| 4527 *context_length = 0; | 4527 *context_length = 0; |
| 4528 return previous_; | 4528 return previous_; |
| 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_IA32 | 4535 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |