OLD | NEW |
---|---|
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3056 // The subexpression does not have side effects. | 3056 // The subexpression does not have side effects. |
3057 context()->Plug(false); | 3057 context()->Plug(false); |
3058 } else if (prop != NULL) { | 3058 } else if (prop != NULL) { |
3059 if (prop->is_synthetic()) { | 3059 if (prop->is_synthetic()) { |
3060 // Result of deleting parameters is false, even when they rewrite | 3060 // Result of deleting parameters is false, even when they rewrite |
3061 // to accesses on the arguments object. | 3061 // to accesses on the arguments object. |
3062 context()->Plug(false); | 3062 context()->Plug(false); |
3063 } else { | 3063 } else { |
3064 VisitForStackValue(prop->obj()); | 3064 VisitForStackValue(prop->obj()); |
3065 VisitForStackValue(prop->key()); | 3065 VisitForStackValue(prop->key()); |
3066 __ mov(r1, Operand(Smi::FromInt(strict_mode_flag()))); | |
3067 __ push(r1); | |
Martin Maly
2011/02/14 05:15:22
Is there a preferred register to use instead?
Mads Ager (chromium)
2011/02/14 10:27:24
r1 is fine, r0 would be fine too. No preferences h
| |
3066 __ InvokeBuiltin(Builtins::DELETE, CALL_JS); | 3068 __ InvokeBuiltin(Builtins::DELETE, CALL_JS); |
3067 context()->Plug(r0); | 3069 context()->Plug(r0); |
3068 } | 3070 } |
3069 } else if (var->is_global()) { | 3071 } else if (var->is_global()) { |
3070 __ ldr(r1, GlobalObjectOperand()); | 3072 ASSERT(strict_mode_flag() == kNonStrictMode); |
Mads Ager (chromium)
2011/02/14 10:27:24
Maybe duplicate the comment here to explain the as
Martin Maly
2011/02/14 21:46:51
Done.
| |
3071 __ mov(r0, Operand(var->name())); | 3073 __ ldr(r2, GlobalObjectOperand()); |
3072 __ Push(r1, r0); | 3074 __ mov(r1, Operand(var->name())); |
3075 __ mov(r0, Operand(Smi::FromInt(kNonStrictMode))); | |
3076 __ Push(r2, r1, r0); | |
3073 __ InvokeBuiltin(Builtins::DELETE, CALL_JS); | 3077 __ InvokeBuiltin(Builtins::DELETE, CALL_JS); |
3074 context()->Plug(r0); | 3078 context()->Plug(r0); |
3075 } else { | 3079 } else { |
3076 // Non-global variable. Call the runtime to try to delete from the | 3080 // Non-global variable. Call the runtime to try to delete from the |
3077 // context where the variable was introduced. | 3081 // context where the variable was introduced. |
3078 __ push(context_register()); | 3082 __ push(context_register()); |
3079 __ mov(r2, Operand(var->name())); | 3083 __ mov(r2, Operand(var->name())); |
3080 __ push(r2); | 3084 __ push(r2); |
3081 __ CallRuntime(Runtime::kDeleteContextSlot, 2); | 3085 __ CallRuntime(Runtime::kDeleteContextSlot, 2); |
3082 context()->Plug(r0); | 3086 context()->Plug(r0); |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3695 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 3699 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
3696 __ add(pc, r1, Operand(masm_->CodeObject())); | 3700 __ add(pc, r1, Operand(masm_->CodeObject())); |
3697 } | 3701 } |
3698 | 3702 |
3699 | 3703 |
3700 #undef __ | 3704 #undef __ |
3701 | 3705 |
3702 } } // namespace v8::internal | 3706 } } // namespace v8::internal |
3703 | 3707 |
3704 #endif // V8_TARGET_ARCH_ARM | 3708 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |