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

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

Issue 133443009: A64: Synchronize with r17441. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | « src/a64/deoptimizer-a64.cc ('k') | src/a64/lithium-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Open a frame scope to indicate that there is a frame on the stack. 160 // Open a frame scope to indicate that there is a frame on the stack.
161 // The MANUAL indicates that the scope shouldn't actually generate code 161 // The MANUAL indicates that the scope shouldn't actually generate code
162 // to set up the frame because we do it manually below. 162 // to set up the frame because we do it manually below.
163 FrameScope frame_scope(masm_, StackFrame::MANUAL); 163 FrameScope frame_scope(masm_, StackFrame::MANUAL);
164 164
165 // This call emits the following sequence in a way that can be patched for 165 // This call emits the following sequence in a way that can be patched for
166 // code ageing support: 166 // code ageing support:
167 // Push(lr, fp, cp, x1); 167 // Push(lr, fp, cp, x1);
168 // Add(fp, jssp, 2 * kPointerSize); 168 // Add(fp, jssp, 2 * kPointerSize);
169 info->set_prologue_offset(masm_->pc_offset()); 169 info->set_prologue_offset(masm_->pc_offset());
170 __ EmitFrameSetupForCodeAgePatching(); 170 __ Prologue(BUILD_FUNCTION_FRAME);
171 info->AddNoFrameRange(0, masm_->pc_offset()); 171 info->AddNoFrameRange(0, masm_->pc_offset());
172 172
173 // Reserve space on the stack for locals. 173 // Reserve space on the stack for locals.
174 { Comment cmnt(masm_, "[ Allocate locals"); 174 { Comment cmnt(masm_, "[ Allocate locals");
175 int locals_count = info->scope()->num_stack_slots(); 175 int locals_count = info->scope()->num_stack_slots();
176 // Generators allocate locals, if any, in context slots. 176 // Generators allocate locals, if any, in context slots.
177 ASSERT(!info->function()->is_generator() || locals_count == 0); 177 ASSERT(!info->function()->is_generator() || locals_count == 0);
178 178
179 if (locals_count > 0) { 179 if (locals_count > 0) {
180 __ LoadRoot(x10, Heap::kUndefinedValueRootIndex); 180 __ LoadRoot(x10, Heap::kUndefinedValueRootIndex);
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 __ B(&exit); 1162 __ B(&exit);
1163 1163
1164 // We got a fixed array in register x0. Iterate through that. 1164 // We got a fixed array in register x0. Iterate through that.
1165 Label non_proxy; 1165 Label non_proxy;
1166 __ Bind(&fixed_array); 1166 __ Bind(&fixed_array);
1167 1167
1168 Handle<Cell> cell = isolate()->factory()->NewCell( 1168 Handle<Cell> cell = isolate()->factory()->NewCell(
1169 Handle<Object>(Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker), 1169 Handle<Object>(Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker),
1170 isolate())); 1170 isolate()));
1171 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell); 1171 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell);
1172 __ LoadHeapObject(x1, cell); 1172 __ LoadObject(x1, cell);
1173 __ Mov(x10, Operand(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker))); 1173 __ Mov(x10, Operand(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker)));
1174 __ Str(x10, FieldMemOperand(x1, Cell::kValueOffset)); 1174 __ Str(x10, FieldMemOperand(x1, Cell::kValueOffset));
1175 1175
1176 __ Mov(x1, Operand(Smi::FromInt(1))); // Smi indicates slow check. 1176 __ Mov(x1, Operand(Smi::FromInt(1))); // Smi indicates slow check.
1177 __ Peek(x10, 0); // Get enumerated object. 1177 __ Peek(x10, 0); // Get enumerated object.
1178 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); 1178 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE);
1179 // TODO(all): similar check was done already. Can we avoid it here? 1179 // TODO(all): similar check was done already. Can we avoid it here?
1180 __ JumpIfObjectType(x10, x11, x12, LAST_JS_PROXY_TYPE, &non_proxy, gt); 1180 __ JumpIfObjectType(x10, x11, x12, LAST_JS_PROXY_TYPE, &non_proxy, gt);
1181 // TODO(all): use csel here 1181 // TODO(all): use csel here
1182 __ Mov(x1, Operand(Smi::FromInt(0))); // Zero indicates proxy. 1182 __ Mov(x1, Operand(Smi::FromInt(0))); // Zero indicates proxy.
(...skipping 3881 matching lines...) Expand 10 before | Expand all | Expand 10 after
5064 return previous_; 5064 return previous_;
5065 } 5065 }
5066 5066
5067 5067
5068 #undef __ 5068 #undef __
5069 5069
5070 5070
5071 } } // namespace v8::internal 5071 } } // namespace v8::internal
5072 5072
5073 #endif // V8_TARGET_ARCH_A64 5073 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/deoptimizer-a64.cc ('k') | src/a64/lithium-a64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698