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

Side by Side Diff: src/crankshaft/hydrogen.h

Issue 1614943002: [crankshaft] Remove the useless HMapEnumLength instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Put NoObservableSideEffectsScope there Created 4 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/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_CRANKSHAFT_HYDROGEN_H_ 5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_
6 #define V8_CRANKSHAFT_HYDROGEN_H_ 6 #define V8_CRANKSHAFT_HYDROGEN_H_
7 7
8 #include "src/accessors.h" 8 #include "src/accessors.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/ast/ast.h" 10 #include "src/ast/ast.h"
(...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 HValue* BuildDecodeField(HValue* encoded_field) { 1291 HValue* BuildDecodeField(HValue* encoded_field) {
1292 HValue* mask_value = Add<HConstant>(static_cast<int>(BitFieldClass::kMask)); 1292 HValue* mask_value = Add<HConstant>(static_cast<int>(BitFieldClass::kMask));
1293 HValue* masked_field = 1293 HValue* masked_field =
1294 AddUncasted<HBitwise>(Token::BIT_AND, encoded_field, mask_value); 1294 AddUncasted<HBitwise>(Token::BIT_AND, encoded_field, mask_value);
1295 return AddUncasted<HShr>(masked_field, 1295 return AddUncasted<HShr>(masked_field,
1296 Add<HConstant>(static_cast<int>(BitFieldClass::kShift))); 1296 Add<HConstant>(static_cast<int>(BitFieldClass::kShift)));
1297 } 1297 }
1298 1298
1299 HValue* BuildGetElementsKind(HValue* object); 1299 HValue* BuildGetElementsKind(HValue* object);
1300 1300
1301 HValue* BuildEnumLength(HValue* map);
1302
1301 HValue* BuildCheckHeapObject(HValue* object); 1303 HValue* BuildCheckHeapObject(HValue* object);
1302 HValue* BuildCheckString(HValue* string); 1304 HValue* BuildCheckString(HValue* string);
1303 HValue* BuildWrapReceiver(HValue* object, HValue* function); 1305 HValue* BuildWrapReceiver(HValue* object, HValue* function);
1304 1306
1305 // Building common constructs 1307 // Building common constructs
1306 HValue* BuildCheckForCapacityGrow(HValue* object, 1308 HValue* BuildCheckForCapacityGrow(HValue* object,
1307 HValue* elements, 1309 HValue* elements,
1308 ElementsKind kind, 1310 ElementsKind kind,
1309 HValue* length, 1311 HValue* length,
1310 HValue* key, 1312 HValue* key,
(...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after
3061 3063
3062 private: 3064 private:
3063 HGraphBuilder* builder_; 3065 HGraphBuilder* builder_;
3064 }; 3066 };
3065 3067
3066 3068
3067 } // namespace internal 3069 } // namespace internal
3068 } // namespace v8 3070 } // namespace v8
3069 3071
3070 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3072 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698