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

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

Issue 9227007: Version 3.8.6 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 11 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/mips/full-codegen-mips.cc ('k') | src/mips/lithium-codegen-mips.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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 bool is_aborted() const { return status_ == ABORTED; } 141 bool is_aborted() const { return status_ == ABORTED; }
142 142
143 StrictModeFlag strict_mode_flag() const { 143 StrictModeFlag strict_mode_flag() const {
144 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; 144 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode;
145 } 145 }
146 146
147 LChunk* chunk() const { return chunk_; } 147 LChunk* chunk() const { return chunk_; }
148 Scope* scope() const { return scope_; } 148 Scope* scope() const { return scope_; }
149 HGraph* graph() const { return chunk_->graph(); } 149 HGraph* graph() const { return chunk_->graph(); }
150 150
151 Register scratch0() { return lithiumScratchReg; } 151 Register scratch0() { return kLithiumScratchReg; }
152 Register scratch1() { return lithiumScratchReg2; } 152 Register scratch1() { return kLithiumScratchReg2; }
153 DoubleRegister double_scratch0() { return lithiumScratchDouble; } 153 DoubleRegister double_scratch0() { return kLithiumScratchDouble; }
154 154
155 int GetNextEmittedBlock(int block); 155 int GetNextEmittedBlock(int block);
156 LInstruction* GetNextInstruction(); 156 LInstruction* GetNextInstruction();
157 157
158 void EmitClassOfTest(Label* if_true, 158 void EmitClassOfTest(Label* if_true,
159 Label* if_false, 159 Label* if_false,
160 Handle<String> class_name, 160 Handle<String> class_name,
161 Register input, 161 Register input,
162 Register temporary, 162 Register temporary,
163 Register temporary2); 163 Register temporary2);
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 : codegen_(codegen), 416 : codegen_(codegen),
417 external_exit_(NULL), 417 external_exit_(NULL),
418 instruction_index_(codegen->current_instruction_) { 418 instruction_index_(codegen->current_instruction_) {
419 codegen->AddDeferredCode(this); 419 codegen->AddDeferredCode(this);
420 } 420 }
421 421
422 virtual ~LDeferredCode() { } 422 virtual ~LDeferredCode() { }
423 virtual void Generate() = 0; 423 virtual void Generate() = 0;
424 virtual LInstruction* instr() = 0; 424 virtual LInstruction* instr() = 0;
425 425
426 void SetExit(Label *exit) { external_exit_ = exit; } 426 void SetExit(Label* exit) { external_exit_ = exit; }
427 Label* entry() { return &entry_; } 427 Label* entry() { return &entry_; }
428 Label* exit() { return external_exit_ != NULL ? external_exit_ : &exit_; } 428 Label* exit() { return external_exit_ != NULL ? external_exit_ : &exit_; }
429 int instruction_index() const { return instruction_index_; } 429 int instruction_index() const { return instruction_index_; }
430 430
431 protected: 431 protected:
432 LCodeGen* codegen() const { return codegen_; } 432 LCodeGen* codegen() const { return codegen_; }
433 MacroAssembler* masm() const { return codegen_->masm(); } 433 MacroAssembler* masm() const { return codegen_->masm(); }
434 434
435 private: 435 private:
436 LCodeGen* codegen_; 436 LCodeGen* codegen_;
437 Label entry_; 437 Label entry_;
438 Label exit_; 438 Label exit_;
439 Label* external_exit_; 439 Label* external_exit_;
440 int instruction_index_; 440 int instruction_index_;
441 }; 441 };
442 442
443 } } // namespace v8::internal 443 } } // namespace v8::internal
444 444
445 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 445 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698