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

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

Issue 1704833002: [crankshaft] Make sure +x is as fast as Number(x). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | src/crankshaft/hydrogen.cc » ('j') | src/crankshaft/hydrogen.cc » ('J')
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 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 ElementsKind kind, 1314 ElementsKind kind,
1315 HValue* length); 1315 HValue* length);
1316 1316
1317 void BuildTransitionElementsKind(HValue* object, 1317 void BuildTransitionElementsKind(HValue* object,
1318 HValue* map, 1318 HValue* map,
1319 ElementsKind from_kind, 1319 ElementsKind from_kind,
1320 ElementsKind to_kind, 1320 ElementsKind to_kind,
1321 bool is_jsarray); 1321 bool is_jsarray);
1322 1322
1323 HValue* BuildNumberToString(HValue* object, Type* type); 1323 HValue* BuildNumberToString(HValue* object, Type* type);
1324 HValue* BuildToNumber(HValue* input, Type* input_type);
1324 HValue* BuildToObject(HValue* receiver); 1325 HValue* BuildToObject(HValue* receiver);
1325 1326
1326 void BuildJSObjectCheck(HValue* receiver, 1327 void BuildJSObjectCheck(HValue* receiver,
1327 int bit_field_mask); 1328 int bit_field_mask);
1328 1329
1329 // Checks a key value that's being used for a keyed element access context. If 1330 // Checks a key value that's being used for a keyed element access context. If
1330 // the key is a index, i.e. a smi or a number in a unique string with a cached 1331 // the key is a index, i.e. a smi or a number in a unique string with a cached
1331 // numeric value, the "true" of the continuation is joined. Otherwise, 1332 // numeric value, the "true" of the continuation is joined. Otherwise,
1332 // if the key is a name or a unique string, the "false" of the continuation is 1333 // if the key is a name or a unique string, the "false" of the continuation is
1333 // joined. Otherwise, a deoptimization is triggered. In both paths of the 1334 // joined. Otherwise, a deoptimization is triggered. In both paths of the
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after
3033 3034
3034 private: 3035 private:
3035 HGraphBuilder* builder_; 3036 HGraphBuilder* builder_;
3036 }; 3037 };
3037 3038
3038 3039
3039 } // namespace internal 3040 } // namespace internal
3040 } // namespace v8 3041 } // namespace v8
3041 3042
3042 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3043 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/hydrogen.cc » ('j') | src/crankshaft/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698