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

Side by Side Diff: src/arm/virtual-frame-arm.cc

Issue 305005: Added support for assignments to global variables in the toplevel code... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 Result* arg_count_register, 248 Result* arg_count_register,
249 int arg_count) { 249 int arg_count) {
250 ASSERT(arg_count_register->reg().is(r0)); 250 ASSERT(arg_count_register->reg().is(r0));
251 PrepareForCall(arg_count, arg_count); 251 PrepareForCall(arg_count, arg_count);
252 arg_count_register->Unuse(); 252 arg_count_register->Unuse();
253 __ InvokeBuiltin(id, flags); 253 __ InvokeBuiltin(id, flags);
254 } 254 }
255 255
256 256
257 void VirtualFrame::RawCallCodeObject(Handle<Code> code, 257 void VirtualFrame::RawCallCodeObject(Handle<Code> code,
258 RelocInfo::Mode rmode) { 258 RelocInfo::Mode rmode) {
259 ASSERT(cgen()->HasValidEntryRegisters()); 259 ASSERT(cgen()->HasValidEntryRegisters());
260 __ Call(code, rmode); 260 __ Call(code, rmode);
261 } 261 }
262 262
263 263
264 void VirtualFrame::CallCodeObject(Handle<Code> code, 264 void VirtualFrame::CallCodeObject(Handle<Code> code,
265 RelocInfo::Mode rmode, 265 RelocInfo::Mode rmode,
266 int dropped_args) { 266 int dropped_args) {
267 int spilled_args = 0; 267 int spilled_args = 0;
268 switch (code->kind()) { 268 switch (code->kind()) {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 ASSERT(stack_pointer_ == element_count() - 1); 388 ASSERT(stack_pointer_ == element_count() - 1);
389 elements_.Add(FrameElement::MemoryElement()); 389 elements_.Add(FrameElement::MemoryElement());
390 stack_pointer_++; 390 stack_pointer_++;
391 __ push(reg); 391 __ push(reg);
392 } 392 }
393 393
394 394
395 #undef __ 395 #undef __
396 396
397 } } // namespace v8::internal 397 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/compiler.cc » ('j') | src/ia32/fast-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698