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 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1979 // instanceof stub. | 1979 // instanceof stub. |
1980 Label cache_miss; | 1980 Label cache_miss; |
1981 Register map = temp; | 1981 Register map = temp; |
1982 __ lw(map, FieldMemOperand(object, HeapObject::kMapOffset)); | 1982 __ lw(map, FieldMemOperand(object, HeapObject::kMapOffset)); |
1983 | 1983 |
1984 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm_); | 1984 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm_); |
1985 __ bind(deferred->map_check()); // Label for calculating code patching. | 1985 __ bind(deferred->map_check()); // Label for calculating code patching. |
1986 // We use Factory::the_hole_value() on purpose instead of loading from the | 1986 // We use Factory::the_hole_value() on purpose instead of loading from the |
1987 // root array to force relocation to be able to later patch with | 1987 // root array to force relocation to be able to later patch with |
1988 // the cached map. | 1988 // the cached map. |
1989 __ li(at, Operand(factory()->the_hole_value()), true); | 1989 Handle<JSGlobalPropertyCell> cell = |
| 1990 factory()->NewJSGlobalPropertyCell(factory()->the_hole_value()); |
| 1991 __ li(at, Operand(Handle<Object>(cell))); |
| 1992 __ lw(at, FieldMemOperand(at, JSGlobalPropertyCell::kValueOffset)); |
1990 __ Branch(&cache_miss, ne, map, Operand(at)); | 1993 __ Branch(&cache_miss, ne, map, Operand(at)); |
1991 // We use Factory::the_hole_value() on purpose instead of loading from the | 1994 // We use Factory::the_hole_value() on purpose instead of loading from the |
1992 // root array to force relocation to be able to later patch | 1995 // root array to force relocation to be able to later patch |
1993 // with true or false. | 1996 // with true or false. |
1994 __ li(result, Operand(factory()->the_hole_value()), true); | 1997 __ li(result, Operand(factory()->the_hole_value()), true); |
1995 __ Branch(&done); | 1998 __ Branch(&done); |
1996 | 1999 |
1997 // The inlined call site cache did not match. Check null and string before | 2000 // The inlined call site cache did not match. Check null and string before |
1998 // calling the deferred code. | 2001 // calling the deferred code. |
1999 __ bind(&cache_miss); | 2002 __ bind(&cache_miss); |
(...skipping 2631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4631 ASSERT(!environment->HasBeenRegistered()); | 4634 ASSERT(!environment->HasBeenRegistered()); |
4632 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); | 4635 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); |
4633 ASSERT(osr_pc_offset_ == -1); | 4636 ASSERT(osr_pc_offset_ == -1); |
4634 osr_pc_offset_ = masm()->pc_offset(); | 4637 osr_pc_offset_ = masm()->pc_offset(); |
4635 } | 4638 } |
4636 | 4639 |
4637 | 4640 |
4638 #undef __ | 4641 #undef __ |
4639 | 4642 |
4640 } } // namespace v8::internal | 4643 } } // namespace v8::internal |
OLD | NEW |