| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "ia32/lithium-codegen-ia32.h" | 9 #include "ia32/lithium-codegen-ia32.h" |
| 10 #include "ic.h" | 10 #include "ic.h" |
| (...skipping 1997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2008 __ lea(ToRegister(instr->result()), Operand::StaticVariable(instr->value())); | 2008 __ lea(ToRegister(instr->result()), Operand::StaticVariable(instr->value())); |
| 2009 } | 2009 } |
| 2010 | 2010 |
| 2011 | 2011 |
| 2012 void LCodeGen::DoConstantT(LConstantT* instr) { | 2012 void LCodeGen::DoConstantT(LConstantT* instr) { |
| 2013 Register reg = ToRegister(instr->result()); | 2013 Register reg = ToRegister(instr->result()); |
| 2014 Handle<Object> object = instr->value(isolate()); | 2014 Handle<Object> object = instr->value(isolate()); |
| 2015 AllowDeferredHandleDereference smi_check; | 2015 AllowDeferredHandleDereference smi_check; |
| 2016 if (instr->hydrogen()->HasObjectMap()) { | 2016 if (instr->hydrogen()->HasObjectMap()) { |
| 2017 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); | 2017 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); |
| 2018 CHECK(object->IsHeapObject()); | 2018 ASSERT(object->IsHeapObject()); |
| 2019 CHECK(!object_map->is_stable() || | 2019 ASSERT(!object_map->is_stable() || |
| 2020 *object_map == Handle<HeapObject>::cast(object)->map()); | 2020 *object_map == Handle<HeapObject>::cast(object)->map()); |
| 2021 USE(object_map); |
| 2021 } | 2022 } |
| 2022 __ LoadObject(reg, object); | 2023 __ LoadObject(reg, object); |
| 2023 } | 2024 } |
| 2024 | 2025 |
| 2025 | 2026 |
| 2026 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 2027 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |
| 2027 Register result = ToRegister(instr->result()); | 2028 Register result = ToRegister(instr->result()); |
| 2028 Register map = ToRegister(instr->value()); | 2029 Register map = ToRegister(instr->value()); |
| 2029 __ EnumLength(result, map); | 2030 __ EnumLength(result, map); |
| 2030 } | 2031 } |
| (...skipping 4399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6430 __ bind(deferred->exit()); | 6431 __ bind(deferred->exit()); |
| 6431 __ bind(&done); | 6432 __ bind(&done); |
| 6432 } | 6433 } |
| 6433 | 6434 |
| 6434 | 6435 |
| 6435 #undef __ | 6436 #undef __ |
| 6436 | 6437 |
| 6437 } } // namespace v8::internal | 6438 } } // namespace v8::internal |
| 6438 | 6439 |
| 6439 #endif // V8_TARGET_ARCH_IA32 | 6440 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |