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

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

Issue 6674028: Use compilation info isolate pointer in lithium codegen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/isolates
Patch Set: Created 9 years, 9 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/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 scope_(info->scope()), 59 scope_(info->scope()),
60 status_(UNUSED), 60 status_(UNUSED),
61 deferred_(8), 61 deferred_(8),
62 osr_pc_offset_(-1), 62 osr_pc_offset_(-1),
63 resolver_(this) { 63 resolver_(this) {
64 PopulateDeoptimizationLiteralsWithInlinedFunctions(); 64 PopulateDeoptimizationLiteralsWithInlinedFunctions();
65 } 65 }
66 66
67 // Simple accessors. 67 // Simple accessors.
68 MacroAssembler* masm() const { return masm_; } 68 MacroAssembler* masm() const { return masm_; }
69 CompilationInfo* info() const { return info_; }
69 Isolate* isolate() const { return info_->isolate(); } 70 Isolate* isolate() const { return info_->isolate(); }
70 CompilationInfo* info() const { return info_; } 71 Factory* factory() const { return isolate()->factory(); }
72 Heap* heap() const { return isolate()->heap(); }
71 73
72 // Support for converting LOperands to assembler types. 74 // Support for converting LOperands to assembler types.
73 Register ToRegister(LOperand* op) const; 75 Register ToRegister(LOperand* op) const;
74 XMMRegister ToDoubleRegister(LOperand* op) const; 76 XMMRegister ToDoubleRegister(LOperand* op) const;
75 bool IsInteger32Constant(LConstantOperand* op) const; 77 bool IsInteger32Constant(LConstantOperand* op) const;
76 int ToInteger32(LConstantOperand* op) const; 78 int ToInteger32(LConstantOperand* op) const;
77 bool IsTaggedConstant(LConstantOperand* op) const; 79 bool IsTaggedConstant(LConstantOperand* op) const;
78 Handle<Object> ToHandle(LConstantOperand* op) const; 80 Handle<Object> ToHandle(LConstantOperand* op) const;
79 Operand ToOperand(LOperand* op) const; 81 Operand ToOperand(LOperand* op) const;
80 82
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 private: 304 private:
303 LCodeGen* codegen_; 305 LCodeGen* codegen_;
304 Label entry_; 306 Label entry_;
305 Label exit_; 307 Label exit_;
306 Label* external_exit_; 308 Label* external_exit_;
307 }; 309 };
308 310
309 } } // namespace v8::internal 311 } } // namespace v8::internal
310 312
311 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 313 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698