| 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 1866 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1877  |  1877  | 
|  1878  |  1878  | 
|  1879 void LCodeGen::DoConstantE(LConstantE* instr) { |  1879 void LCodeGen::DoConstantE(LConstantE* instr) { | 
|  1880   __ mov(ToRegister(instr->result()), Operand(instr->value())); |  1880   __ mov(ToRegister(instr->result()), Operand(instr->value())); | 
|  1881 } |  1881 } | 
|  1882  |  1882  | 
|  1883  |  1883  | 
|  1884 void LCodeGen::DoConstantT(LConstantT* instr) { |  1884 void LCodeGen::DoConstantT(LConstantT* instr) { | 
|  1885   Handle<Object> object = instr->value(isolate()); |  1885   Handle<Object> object = instr->value(isolate()); | 
|  1886   AllowDeferredHandleDereference smi_check; |  1886   AllowDeferredHandleDereference smi_check; | 
|  1887   if (instr->hydrogen()->HasObjectMap()) { |  | 
|  1888     Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); |  | 
|  1889     ASSERT(object->IsHeapObject()); |  | 
|  1890     ASSERT(!object_map->is_stable() || |  | 
|  1891            *object_map == Handle<HeapObject>::cast(object)->map()); |  | 
|  1892     USE(object_map); |  | 
|  1893   } |  | 
|  1894   __ Move(ToRegister(instr->result()), object); |  1887   __ Move(ToRegister(instr->result()), object); | 
|  1895 } |  1888 } | 
|  1896  |  1889  | 
|  1897  |  1890  | 
|  1898 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |  1891 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 
|  1899   Register result = ToRegister(instr->result()); |  1892   Register result = ToRegister(instr->result()); | 
|  1900   Register map = ToRegister(instr->value()); |  1893   Register map = ToRegister(instr->value()); | 
|  1901   __ EnumLength(result, map); |  1894   __ EnumLength(result, map); | 
|  1902 } |  1895 } | 
|  1903  |  1896  | 
| (...skipping 3958 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  5862   __ ldr(result, FieldMemOperand(scratch, |  5855   __ ldr(result, FieldMemOperand(scratch, | 
|  5863                                  FixedArray::kHeaderSize - kPointerSize)); |  5856                                  FixedArray::kHeaderSize - kPointerSize)); | 
|  5864   __ bind(deferred->exit()); |  5857   __ bind(deferred->exit()); | 
|  5865   __ bind(&done); |  5858   __ bind(&done); | 
|  5866 } |  5859 } | 
|  5867  |  5860  | 
|  5868  |  5861  | 
|  5869 #undef __ |  5862 #undef __ | 
|  5870  |  5863  | 
|  5871 } }  // namespace v8::internal |  5864 } }  // namespace v8::internal | 
| OLD | NEW |