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

Side by Side Diff: src/ia32/lithium-ia32.h

Issue 6366002: Begin changing Hydrogen branch instructions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/build/ia32
Patch Set: Rebase to HEAD> Created 9 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/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 }; 1042 };
1043 1043
1044 1044
1045 class LCmpMapAndBranch: public LTemplateInstruction<0, 1> { 1045 class LCmpMapAndBranch: public LTemplateInstruction<0, 1> {
1046 public: 1046 public:
1047 explicit LCmpMapAndBranch(LOperand* value) { 1047 explicit LCmpMapAndBranch(LOperand* value) {
1048 inputs_[0] = value; 1048 inputs_[0] = value;
1049 } 1049 }
1050 1050
1051 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") 1051 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
1052 DECLARE_HYDROGEN_ACCESSOR(CompareMapAndBranch) 1052 DECLARE_HYDROGEN_ACCESSOR(CompareMap)
1053 1053
1054 virtual bool IsControl() const { return true; } 1054 virtual bool IsControl() const { return true; }
1055 1055
1056 Handle<Map> map() const { return hydrogen()->map(); } 1056 Handle<Map> map() const { return hydrogen()->map(); }
1057 int true_block_id() const { 1057 int true_block_id() const {
1058 return hydrogen()->true_destination()->block_id(); 1058 return hydrogen()->FirstSuccessor()->block_id();
1059 } 1059 }
1060 int false_block_id() const { 1060 int false_block_id() const {
1061 return hydrogen()->false_destination()->block_id(); 1061 return hydrogen()->SecondSuccessor()->block_id();
1062 } 1062 }
1063 }; 1063 };
1064 1064
1065 1065
1066 class LJSArrayLength: public LTemplateInstruction<1, 1> { 1066 class LJSArrayLength: public LTemplateInstruction<1, 1> {
1067 public: 1067 public:
1068 explicit LJSArrayLength(LOperand* value) { 1068 explicit LJSArrayLength(LOperand* value) {
1069 inputs_[0] = value; 1069 inputs_[0] = value;
1070 } 1070 }
1071 1071
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
2018 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2018 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2019 }; 2019 };
2020 2020
2021 #undef DECLARE_HYDROGEN_ACCESSOR 2021 #undef DECLARE_HYDROGEN_ACCESSOR
2022 #undef DECLARE_INSTRUCTION 2022 #undef DECLARE_INSTRUCTION
2023 #undef DECLARE_CONCRETE_INSTRUCTION 2023 #undef DECLARE_CONCRETE_INSTRUCTION
2024 2024
2025 } } // namespace v8::internal 2025 } } // namespace v8::internal
2026 2026
2027 #endif // V8_IA32_LITHIUM_IA32_H_ 2027 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698