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

Side by Side Diff: src/x64/codegen-x64.cc

Issue 3605008: Fix presubmit failure. (Closed)
Patch Set: Merge with HEAD. Created 10 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
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 ASSERT(frame_ == NULL); 175 ASSERT(frame_ == NULL);
176 frame_ = new VirtualFrame(); 176 frame_ = new VirtualFrame();
177 set_in_spilled_code(false); 177 set_in_spilled_code(false);
178 178
179 // Adjust for function-level loop nesting. 179 // Adjust for function-level loop nesting.
180 ASSERT_EQ(0, loop_nesting_); 180 ASSERT_EQ(0, loop_nesting_);
181 loop_nesting_ = info->is_in_loop() ? 1 : 0; 181 loop_nesting_ = info->is_in_loop() ? 1 : 0;
182 182
183 JumpTarget::set_compiling_deferred_code(false); 183 JumpTarget::set_compiling_deferred_code(false);
184 184
185 #ifdef DEBUG 185 {
186 if (strlen(FLAG_stop_at) > 0 &&
187 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) {
188 frame_->SpillAll();
189 __ int3();
190 }
191 #endif
192
193 { // NOLINT
194 CodeGenState state(this); 186 CodeGenState state(this);
195 // Entry: 187 // Entry:
196 // Stack: receiver, arguments, return address. 188 // Stack: receiver, arguments, return address.
197 // rbp: caller's frame pointer 189 // rbp: caller's frame pointer
198 // rsp: stack pointer 190 // rsp: stack pointer
199 // rdi: called JS function 191 // rdi: called JS function
200 // rsi: callee's context 192 // rsi: callee's context
201 allocator_->Initialize(); 193 allocator_->Initialize();
202 194
195 #ifdef DEBUG
196 if (strlen(FLAG_stop_at) > 0 &&
197 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) {
198 frame_->SpillAll();
199 __ int3();
200 }
201 #endif
202
203 frame_->Enter(); 203 frame_->Enter();
204 204
205 // Allocate space for locals and initialize them. 205 // Allocate space for locals and initialize them.
206 frame_->AllocateStackSlots(); 206 frame_->AllocateStackSlots();
207 207
208 // Allocate the local context if needed. 208 // Allocate the local context if needed.
209 int heap_slots = scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; 209 int heap_slots = scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
210 if (heap_slots > 0) { 210 if (heap_slots > 0) {
211 Comment cmnt(masm_, "[ allocate local context"); 211 Comment cmnt(masm_, "[ allocate local context");
212 // Allocate local context. 212 // Allocate local context.
(...skipping 8710 matching lines...) Expand 10 before | Expand all | Expand 10 after
8923 #undef __ 8923 #undef __
8924 8924
8925 void RecordWriteStub::Generate(MacroAssembler* masm) { 8925 void RecordWriteStub::Generate(MacroAssembler* masm) {
8926 masm->RecordWriteHelper(object_, addr_, scratch_); 8926 masm->RecordWriteHelper(object_, addr_, scratch_);
8927 masm->ret(0); 8927 masm->ret(0);
8928 } 8928 }
8929 8929
8930 } } // namespace v8::internal 8930 } } // namespace v8::internal
8931 8931
8932 #endif // V8_TARGET_ARCH_X64 8932 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698