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

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

Issue 2657533003: [stubs] Add initializing constructor to CSA::Variable (Closed)
Patch Set: Created 3 years, 10 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
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 explicit CodeAssemblerVariable(CodeAssembler* assembler,
417 MachineRepresentation rep,
418 Node* initial_value);
416 ~CodeAssemblerVariable(); 419 ~CodeAssemblerVariable();
417 void Bind(Node* value); 420 void Bind(Node* value);
418 Node* value() const; 421 Node* value() const;
419 MachineRepresentation rep() const; 422 MachineRepresentation rep() const;
420 bool IsBound() const; 423 bool IsBound() const;
421 424
422 private: 425 private:
423 friend class CodeAssemblerLabel; 426 friend class CodeAssemblerLabel;
424 friend class CodeAssemblerState; 427 friend class CodeAssemblerState;
425 class Impl; 428 class Impl;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 CodeAssemblerCallback call_epilogue_; 508 CodeAssemblerCallback call_epilogue_;
506 509
507 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); 510 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState);
508 }; 511 };
509 512
510 } // namespace compiler 513 } // namespace compiler
511 } // namespace internal 514 } // namespace internal
512 } // namespace v8 515 } // namespace v8
513 516
514 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 517 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698