Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 30023005: Handle constants in new space on arm by making macro-assembler smarter. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Refresh patch set. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 __ jmp(&exit); 1151 __ jmp(&exit);
1152 1152
1153 // We got a fixed array in register r0. Iterate through that. 1153 // We got a fixed array in register r0. Iterate through that.
1154 Label non_proxy; 1154 Label non_proxy;
1155 __ bind(&fixed_array); 1155 __ bind(&fixed_array);
1156 1156
1157 Handle<Cell> cell = isolate()->factory()->NewCell( 1157 Handle<Cell> cell = isolate()->factory()->NewCell(
1158 Handle<Object>(Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker), 1158 Handle<Object>(Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker),
1159 isolate())); 1159 isolate()));
1160 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell); 1160 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell);
1161 __ LoadHeapObject(r1, cell); 1161 __ Move(r1, cell);
1162 __ mov(r2, Operand(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker))); 1162 __ mov(r2, Operand(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker)));
1163 __ str(r2, FieldMemOperand(r1, Cell::kValueOffset)); 1163 __ str(r2, FieldMemOperand(r1, Cell::kValueOffset));
1164 1164
1165 __ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check 1165 __ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check
1166 __ ldr(r2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object 1166 __ ldr(r2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object
1167 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); 1167 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE);
1168 __ CompareObjectType(r2, r3, r3, LAST_JS_PROXY_TYPE); 1168 __ CompareObjectType(r2, r3, r3, LAST_JS_PROXY_TYPE);
1169 __ b(gt, &non_proxy); 1169 __ b(gt, &non_proxy);
1170 __ mov(r1, Operand(Smi::FromInt(0))); // Zero indicates proxy 1170 __ mov(r1, Operand(Smi::FromInt(0))); // Zero indicates proxy
1171 __ bind(&non_proxy); 1171 __ bind(&non_proxy);
(...skipping 3790 matching lines...) Expand 10 before | Expand all | Expand 10 after
4962 ASSERT(Memory::uint32_at(interrupt_address_pointer) == 4962 ASSERT(Memory::uint32_at(interrupt_address_pointer) ==
4963 reinterpret_cast<uint32_t>( 4963 reinterpret_cast<uint32_t>(
4964 isolate->builtins()->OsrAfterStackCheck()->entry())); 4964 isolate->builtins()->OsrAfterStackCheck()->entry()));
4965 return OSR_AFTER_STACK_CHECK; 4965 return OSR_AFTER_STACK_CHECK;
4966 } 4966 }
4967 4967
4968 4968
4969 } } // namespace v8::internal 4969 } } // namespace v8::internal
4970 4970
4971 #endif // V8_TARGET_ARCH_ARM 4971 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698