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

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

Issue 2641863002: [csa] Fix the bound & used condition check for RawMachineLabel and CodeAssemblerLabel. (Closed)
Patch Set: 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 | « no previous file | 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 CodeAssemblerLabel::Type type = CodeAssemblerLabel::kNonDeferred) 437 CodeAssemblerLabel::Type type = CodeAssemblerLabel::kNonDeferred)
438 : CodeAssemblerLabel(assembler, merged_variables.length(), 438 : CodeAssemblerLabel(assembler, merged_variables.length(),
439 &(merged_variables[0]), type) {} 439 &(merged_variables[0]), type) {}
440 CodeAssemblerLabel( 440 CodeAssemblerLabel(
441 CodeAssembler* assembler, size_t count, CodeAssemblerVariable** vars, 441 CodeAssembler* assembler, size_t count, CodeAssemblerVariable** vars,
442 CodeAssemblerLabel::Type type = CodeAssemblerLabel::kNonDeferred); 442 CodeAssemblerLabel::Type type = CodeAssemblerLabel::kNonDeferred);
443 CodeAssemblerLabel( 443 CodeAssemblerLabel(
444 CodeAssembler* assembler, CodeAssemblerVariable* merged_variable, 444 CodeAssembler* assembler, CodeAssemblerVariable* merged_variable,
445 CodeAssemblerLabel::Type type = CodeAssemblerLabel::kNonDeferred) 445 CodeAssemblerLabel::Type type = CodeAssemblerLabel::kNonDeferred)
446 : CodeAssemblerLabel(assembler, 1, &merged_variable, type) {} 446 : CodeAssemblerLabel(assembler, 1, &merged_variable, type) {}
447 ~CodeAssemblerLabel() {} 447 ~CodeAssemblerLabel();
448 448
449 private: 449 private:
450 friend class CodeAssembler; 450 friend class CodeAssembler;
451 451
452 void Bind(); 452 void Bind();
453 void MergeVariables(); 453 void MergeVariables();
454 454
455 bool bound_; 455 bool bound_;
456 size_t merge_count_; 456 size_t merge_count_;
457 CodeAssemblerState* state_; 457 CodeAssemblerState* state_;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 CodeAssemblerCallback call_epilogue_; 501 CodeAssemblerCallback call_epilogue_;
502 502
503 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); 503 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState);
504 }; 504 };
505 505
506 } // namespace compiler 506 } // namespace compiler
507 } // namespace internal 507 } // namespace internal
508 } // namespace v8 508 } // namespace v8
509 509
510 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 510 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/code-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698