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

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

Issue 647018: Introduce 'trivial' expressions, use them for this property assignments. (Closed)
Patch Set: Created 10 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
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/virtual-frame-ia32.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 ASSERT(result->is_valid()); 408 ASSERT(result->is_valid());
409 if (result->is_register()) { 409 if (result->is_register()) {
410 Push(result->reg(), result->number_info()); 410 Push(result->reg(), result->number_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 void Nip(int num_dropped); 425 void Nip(int num_dropped);
422 426
423 private: 427 private:
424 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; 428 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset;
425 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset; 429 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset;
426 static const int kContextOffset = StandardFrameConstants::kContextOffset; 430 static const int kContextOffset = StandardFrameConstants::kContextOffset;
427 431
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 bool Equals(VirtualFrame* other); 584 bool Equals(VirtualFrame* other);
581 585
582 // Classes that need raw access to the elements_ array. 586 // Classes that need raw access to the elements_ array.
583 friend class DeferredCode; 587 friend class DeferredCode;
584 friend class JumpTarget; 588 friend class JumpTarget;
585 }; 589 };
586 590
587 } } // namespace v8::internal 591 } } // namespace v8::internal
588 592
589 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ 593 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/virtual-frame-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698