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

Side by Side Diff: src/lithium.h

Issue 8139027: Version 3.6.5 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: '' Created 9 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
« no previous file with comments | « src/jsregexp.h ('k') | src/lithium.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 void PrintDataTo(StringStream* stream) const; 400 void PrintDataTo(StringStream* stream) const;
401 401
402 private: 402 private:
403 ZoneList<LMoveOperands> move_operands_; 403 ZoneList<LMoveOperands> move_operands_;
404 }; 404 };
405 405
406 406
407 class LPointerMap: public ZoneObject { 407 class LPointerMap: public ZoneObject {
408 public: 408 public:
409 explicit LPointerMap(int position) 409 explicit LPointerMap(int position)
410 : pointer_operands_(8), position_(position), lithium_position_(-1) { } 410 : pointer_operands_(8),
411 untagged_operands_(0),
412 position_(position),
413 lithium_position_(-1) { }
411 414
412 const ZoneList<LOperand*>* operands() const { return &pointer_operands_; } 415 const ZoneList<LOperand*>* GetNormalizedOperands() {
416 for (int i = 0; i < untagged_operands_.length(); ++i) {
417 RemovePointer(untagged_operands_[i]);
418 }
419 untagged_operands_.Clear();
420 return &pointer_operands_;
421 }
413 int position() const { return position_; } 422 int position() const { return position_; }
414 int lithium_position() const { return lithium_position_; } 423 int lithium_position() const { return lithium_position_; }
415 424
416 void set_lithium_position(int pos) { 425 void set_lithium_position(int pos) {
417 ASSERT(lithium_position_ == -1); 426 ASSERT(lithium_position_ == -1);
418 lithium_position_ = pos; 427 lithium_position_ = pos;
419 } 428 }
420 429
421 void RecordPointer(LOperand* op); 430 void RecordPointer(LOperand* op);
431 void RemovePointer(LOperand* op);
432 void RecordUntagged(LOperand* op);
422 void PrintTo(StringStream* stream); 433 void PrintTo(StringStream* stream);
423 434
424 private: 435 private:
425 ZoneList<LOperand*> pointer_operands_; 436 ZoneList<LOperand*> pointer_operands_;
437 ZoneList<LOperand*> untagged_operands_;
426 int position_; 438 int position_;
427 int lithium_position_; 439 int lithium_position_;
428 }; 440 };
429 441
430 442
431 class LEnvironment: public ZoneObject { 443 class LEnvironment: public ZoneObject {
432 public: 444 public:
433 LEnvironment(Handle<JSFunction> closure, 445 LEnvironment(Handle<JSFunction> closure,
434 int ast_id, 446 int ast_id,
435 int parameter_count, 447 int parameter_count,
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 ShallowIterator current_iterator_; 595 ShallowIterator current_iterator_;
584 }; 596 };
585 597
586 598
587 int ElementsKindToShiftSize(ElementsKind elements_kind); 599 int ElementsKindToShiftSize(ElementsKind elements_kind);
588 600
589 601
590 } } // namespace v8::internal 602 } } // namespace v8::internal
591 603
592 #endif // V8_LITHIUM_H_ 604 #endif // V8_LITHIUM_H_
OLDNEW
« no previous file with comments | « src/jsregexp.h ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698