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

Side by Side Diff: src/ia32/lithium-codegen-ia32.h

Issue 260003006: Added a Isolate* parameter to Serializer::enabled(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 stack_depth_--; 452 stack_depth_--;
453 } 453 }
454 void push(X87Register reg) { 454 void push(X87Register reg) {
455 ASSERT(is_mutable_); 455 ASSERT(is_mutable_);
456 ASSERT(stack_depth_ < X87Register::kNumAllocatableRegisters); 456 ASSERT(stack_depth_ < X87Register::kNumAllocatableRegisters);
457 stack_[stack_depth_] = reg; 457 stack_[stack_depth_] = reg;
458 stack_depth_++; 458 stack_depth_++;
459 } 459 }
460 460
461 MacroAssembler* masm() const { return masm_; } 461 MacroAssembler* masm() const { return masm_; }
462 Isolate* isolate() const { return masm_->isolate(); }
462 463
463 private: 464 private:
464 int ArrayIndex(X87Register reg); 465 int ArrayIndex(X87Register reg);
465 int st2idx(int pos); 466 int st2idx(int pos);
466 467
467 X87Register stack_[X87Register::kNumAllocatableRegisters]; 468 X87Register stack_[X87Register::kNumAllocatableRegisters];
468 int stack_depth_; 469 int stack_depth_;
469 bool is_mutable_; 470 bool is_mutable_;
470 MacroAssembler* masm_; 471 MacroAssembler* masm_;
471 }; 472 };
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 Label exit_; 539 Label exit_;
539 Label* external_exit_; 540 Label* external_exit_;
540 Label done_; 541 Label done_;
541 int instruction_index_; 542 int instruction_index_;
542 LCodeGen::X87Stack x87_stack_; 543 LCodeGen::X87Stack x87_stack_;
543 }; 544 };
544 545
545 } } // namespace v8::internal 546 } } // namespace v8::internal
546 547
547 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 548 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698