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

Side by Side Diff: src/compiler/code-assembler.h

Issue 2657533003: [stubs] Add initializing constructor to CSA::Variable (Closed)
Patch Set: Address comments Created 3 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
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/compiler/code-assembler.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_
6 #define V8_COMPILER_CODE_ASSEMBLER_H_ 6 #define V8_COMPILER_CODE_ASSEMBLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 406
407 CodeAssemblerState* state_; 407 CodeAssemblerState* state_;
408 408
409 DISALLOW_COPY_AND_ASSIGN(CodeAssembler); 409 DISALLOW_COPY_AND_ASSIGN(CodeAssembler);
410 }; 410 };
411 411
412 class CodeAssemblerVariable { 412 class CodeAssemblerVariable {
413 public: 413 public:
414 explicit CodeAssemblerVariable(CodeAssembler* assembler, 414 explicit CodeAssemblerVariable(CodeAssembler* assembler,
415 MachineRepresentation rep); 415 MachineRepresentation rep);
416 CodeAssemblerVariable(CodeAssembler* assembler, MachineRepresentation rep,
417 Node* initial_value);
416 ~CodeAssemblerVariable(); 418 ~CodeAssemblerVariable();
417 void Bind(Node* value); 419 void Bind(Node* value);
418 Node* value() const; 420 Node* value() const;
419 MachineRepresentation rep() const; 421 MachineRepresentation rep() const;
420 bool IsBound() const; 422 bool IsBound() const;
421 423
422 private: 424 private:
423 friend class CodeAssemblerLabel; 425 friend class CodeAssemblerLabel;
424 friend class CodeAssemblerState; 426 friend class CodeAssemblerState;
425 class Impl; 427 class Impl;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 CodeAssemblerCallback call_epilogue_; 507 CodeAssemblerCallback call_epilogue_;
506 508
507 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); 509 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState);
508 }; 510 };
509 511
510 } // namespace compiler 512 } // namespace compiler
511 } // namespace internal 513 } // namespace internal
512 } // namespace v8 514 } // namespace v8
513 515
514 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 516 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/compiler/code-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698