| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2487 Label next, fast; | 2487 Label next, fast; |
| 2488 if (!context.is(tmp)) __ mov(tmp, Operand(context)); | 2488 if (!context.is(tmp)) __ mov(tmp, Operand(context)); |
| 2489 __ bind(&next); | 2489 __ bind(&next); |
| 2490 // Terminate at global context. | 2490 // Terminate at global context. |
| 2491 __ ldr(tmp2, FieldMemOperand(tmp, HeapObject::kMapOffset)); | 2491 __ ldr(tmp2, FieldMemOperand(tmp, HeapObject::kMapOffset)); |
| 2492 __ cmp(tmp2, Operand(Factory::global_context_map())); | 2492 __ cmp(tmp2, Operand(Factory::global_context_map())); |
| 2493 __ b(eq, &fast); | 2493 __ b(eq, &fast); |
| 2494 // Check that extension is NULL. | 2494 // Check that extension is NULL. |
| 2495 __ ldr(tmp2, ContextOperand(tmp, Context::EXTENSION_INDEX)); | 2495 __ ldr(tmp2, ContextOperand(tmp, Context::EXTENSION_INDEX)); |
| 2496 __ tst(tmp2, tmp2); | 2496 __ tst(tmp2, tmp2); |
| 2497 __ b(ne, slow); | 2497 slow->Branch(ne); |
| 2498 // Load next context in chain. | 2498 // Load next context in chain. |
| 2499 __ ldr(tmp, ContextOperand(tmp, Context::CLOSURE_INDEX)); | 2499 __ ldr(tmp, ContextOperand(tmp, Context::CLOSURE_INDEX)); |
| 2500 __ ldr(tmp, FieldMemOperand(tmp, JSFunction::kContextOffset)); | 2500 __ ldr(tmp, FieldMemOperand(tmp, JSFunction::kContextOffset)); |
| 2501 __ b(&next); | 2501 __ b(&next); |
| 2502 __ bind(&fast); | 2502 __ bind(&fast); |
| 2503 } | 2503 } |
| 2504 | 2504 |
| 2505 // All extension objects were empty and it is safe to use a global | 2505 // All extension objects were empty and it is safe to use a global |
| 2506 // load IC call. | 2506 // load IC call. |
| 2507 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize)); | 2507 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize)); |
| (...skipping 2576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5084 __ mov(r2, Operand(0)); | 5084 __ mov(r2, Operand(0)); |
| 5085 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); | 5085 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); |
| 5086 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), | 5086 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), |
| 5087 RelocInfo::CODE_TARGET); | 5087 RelocInfo::CODE_TARGET); |
| 5088 } | 5088 } |
| 5089 | 5089 |
| 5090 | 5090 |
| 5091 #undef __ | 5091 #undef __ |
| 5092 | 5092 |
| 5093 } } // namespace v8::internal | 5093 } } // namespace v8::internal |
| OLD | NEW |