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 #include "arm/lithium-codegen-arm.h" | 7 #include "arm/lithium-codegen-arm.h" |
8 #include "arm/lithium-gap-resolver-arm.h" | 8 #include "arm/lithium-gap-resolver-arm.h" |
9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
10 #include "stub-cache.h" | 10 #include "stub-cache.h" |
(...skipping 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1870 void LCodeGen::DoConstantE(LConstantE* instr) { | 1870 void LCodeGen::DoConstantE(LConstantE* instr) { |
1871 __ mov(ToRegister(instr->result()), Operand(instr->value())); | 1871 __ mov(ToRegister(instr->result()), Operand(instr->value())); |
1872 } | 1872 } |
1873 | 1873 |
1874 | 1874 |
1875 void LCodeGen::DoConstantT(LConstantT* instr) { | 1875 void LCodeGen::DoConstantT(LConstantT* instr) { |
1876 Handle<Object> object = instr->value(isolate()); | 1876 Handle<Object> object = instr->value(isolate()); |
1877 AllowDeferredHandleDereference smi_check; | 1877 AllowDeferredHandleDereference smi_check; |
1878 if (instr->hydrogen()->HasObjectMap()) { | 1878 if (instr->hydrogen()->HasObjectMap()) { |
1879 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); | 1879 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); |
1880 CHECK(object->IsHeapObject()); | 1880 ASSERT(object->IsHeapObject()); |
1881 CHECK(!object_map->is_stable() || | 1881 ASSERT(!object_map->is_stable() || |
1882 *object_map == Handle<HeapObject>::cast(object)->map()); | 1882 *object_map == Handle<HeapObject>::cast(object)->map()); |
| 1883 USE(object_map); |
1883 } | 1884 } |
1884 __ Move(ToRegister(instr->result()), object); | 1885 __ Move(ToRegister(instr->result()), object); |
1885 } | 1886 } |
1886 | 1887 |
1887 | 1888 |
1888 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 1889 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |
1889 Register result = ToRegister(instr->result()); | 1890 Register result = ToRegister(instr->result()); |
1890 Register map = ToRegister(instr->value()); | 1891 Register map = ToRegister(instr->value()); |
1891 __ EnumLength(result, map); | 1892 __ EnumLength(result, map); |
1892 } | 1893 } |
(...skipping 3950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5843 __ ldr(result, FieldMemOperand(scratch, | 5844 __ ldr(result, FieldMemOperand(scratch, |
5844 FixedArray::kHeaderSize - kPointerSize)); | 5845 FixedArray::kHeaderSize - kPointerSize)); |
5845 __ bind(deferred->exit()); | 5846 __ bind(deferred->exit()); |
5846 __ bind(&done); | 5847 __ bind(&done); |
5847 } | 5848 } |
5848 | 5849 |
5849 | 5850 |
5850 #undef __ | 5851 #undef __ |
5851 | 5852 |
5852 } } // namespace v8::internal | 5853 } } // namespace v8::internal |
OLD | NEW |