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

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

Issue 1736023: Cut-and-paste port from ia32 to x64: Delay load of trivial left operand of bi... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 7 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/x64/codegen-x64.cc ('k') | src/x64/virtual-frame-x64.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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 void Push(Result* result) { 408 void Push(Result* result) {
409 if (result->is_register()) { 409 if (result->is_register()) {
410 Push(result->reg(), result->type_info()); 410 Push(result->reg(), result->type_info());
411 } else { 411 } else {
412 ASSERT(result->is_constant()); 412 ASSERT(result->is_constant());
413 Push(result->handle()); 413 Push(result->handle());
414 } 414 }
415 result->Unuse(); 415 result->Unuse();
416 } 416 }
417 417
418 // Pushing an expression expects that the expression is trivial (according
419 // to Expression::IsTrivial).
420 void Push(Expression* expr);
421
418 // Nip removes zero or more elements from immediately below the top 422 // Nip removes zero or more elements from immediately below the top
419 // of the frame, leaving the previous top-of-frame value on top of 423 // of the frame, leaving the previous top-of-frame value on top of
420 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). 424 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x).
421 inline void Nip(int num_dropped); 425 inline void Nip(int num_dropped);
422 426
423 inline void SetTypeForLocalAt(int index, TypeInfo info); 427 inline void SetTypeForLocalAt(int index, TypeInfo info);
424 inline void SetTypeForParamAt(int index, TypeInfo info); 428 inline void SetTypeForParamAt(int index, TypeInfo info);
425 429
426 private: 430 private:
427 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; 431 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 572
569 // Classes that need raw access to the elements_ array. 573 // Classes that need raw access to the elements_ array.
570 friend class DeferredCode; 574 friend class DeferredCode;
571 friend class JumpTarget; 575 friend class JumpTarget;
572 }; 576 };
573 577
574 578
575 } } // namespace v8::internal 579 } } // namespace v8::internal
576 580
577 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ 581 #endif // V8_X64_VIRTUAL_FRAME_X64_H_
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/virtual-frame-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698