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

Side by Side Diff: src/hydrogen.h

Issue 1042843002: [Crankshaft] Don't add an instruction twice for %_StringGetLength. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/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_HYDROGEN_H_ 5 #ifndef V8_HYDROGEN_H_
6 #define V8_HYDROGEN_H_ 6 #define V8_HYDROGEN_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 HValue* elements, 1411 HValue* elements,
1412 HValue* checked_key, 1412 HValue* checked_key,
1413 HValue* val, 1413 HValue* val,
1414 HValue* dependency, 1414 HValue* dependency,
1415 ElementsKind elements_kind, 1415 ElementsKind elements_kind,
1416 PropertyAccessType access_type, 1416 PropertyAccessType access_type,
1417 LoadKeyedHoleMode load_mode = NEVER_RETURN_HOLE); 1417 LoadKeyedHoleMode load_mode = NEVER_RETURN_HOLE);
1418 1418
1419 HInstruction* AddLoadStringInstanceType(HValue* string); 1419 HInstruction* AddLoadStringInstanceType(HValue* string);
1420 HInstruction* AddLoadStringLength(HValue* string); 1420 HInstruction* AddLoadStringLength(HValue* string);
1421 HInstruction* BuildLoadStringLength(HValue* string);
1421 HStoreNamedField* AddStoreMapConstant(HValue* object, Handle<Map> map) { 1422 HStoreNamedField* AddStoreMapConstant(HValue* object, Handle<Map> map) {
1422 return Add<HStoreNamedField>(object, HObjectAccess::ForMap(), 1423 return Add<HStoreNamedField>(object, HObjectAccess::ForMap(),
1423 Add<HConstant>(map)); 1424 Add<HConstant>(map));
1424 } 1425 }
1425 HLoadNamedField* AddLoadMap(HValue* object, 1426 HLoadNamedField* AddLoadMap(HValue* object,
1426 HValue* dependency = NULL); 1427 HValue* dependency = NULL);
1427 HLoadNamedField* AddLoadElements(HValue* object, 1428 HLoadNamedField* AddLoadElements(HValue* object,
1428 HValue* dependency = NULL); 1429 HValue* dependency = NULL);
1429 1430
1430 bool MatchRotateRight(HValue* left, 1431 bool MatchRotateRight(HValue* left,
(...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after
3032 } 3033 }
3033 3034
3034 private: 3035 private:
3035 HGraphBuilder* builder_; 3036 HGraphBuilder* builder_;
3036 }; 3037 };
3037 3038
3038 3039
3039 } } // namespace v8::internal 3040 } } // namespace v8::internal
3040 3041
3041 #endif // V8_HYDROGEN_H_ 3042 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698