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

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

Issue 507036: Use one runtime call for creating object/array literals in... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 12 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/arm/fast-codegen-arm.cc ('k') | src/arm/virtual-frame-arm.cc » ('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 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 Result Pop(); 339 Result Pop();
340 340
341 // Pop and save an element from the top of the expression stack and 341 // Pop and save an element from the top of the expression stack and
342 // emit a corresponding pop instruction. 342 // emit a corresponding pop instruction.
343 void EmitPop(Register reg); 343 void EmitPop(Register reg);
344 344
345 // Push an element on top of the expression stack and emit a 345 // Push an element on top of the expression stack and emit a
346 // corresponding push instruction. 346 // corresponding push instruction.
347 void EmitPush(Register reg); 347 void EmitPush(Register reg);
348 348
349 // Push multiple registers on the stack and the virtual frame
350 // Register are selected by setting bit in src_regs and
351 // are pushed in decreasing order: r15 .. r0.
352 void EmitPushMultiple(int count, int src_regs);
353
349 // Push an element on the virtual frame. 354 // Push an element on the virtual frame.
350 void Push(Register reg); 355 void Push(Register reg);
351 void Push(Handle<Object> value); 356 void Push(Handle<Object> value);
352 void Push(Smi* value) { Push(Handle<Object>(value)); } 357 void Push(Smi* value) { Push(Handle<Object>(value)); }
353 358
354 // Pushing a result invalidates it (its contents become owned by the frame). 359 // Pushing a result invalidates it (its contents become owned by the frame).
355 void Push(Result* result) { 360 void Push(Result* result) {
356 if (result->is_register()) { 361 if (result->is_register()) {
357 Push(result->reg()); 362 Push(result->reg());
358 } else { 363 } else {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 520
516 // Classes that need raw access to the elements_ array. 521 // Classes that need raw access to the elements_ array.
517 friend class DeferredCode; 522 friend class DeferredCode;
518 friend class JumpTarget; 523 friend class JumpTarget;
519 }; 524 };
520 525
521 526
522 } } // namespace v8::internal 527 } } // namespace v8::internal
523 528
524 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_ 529 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/arm/virtual-frame-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698