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

Side by Side Diff: src/hydrogen.h

Issue 1302173007: [es6] Introduce a dedicated JSIteratorResult type. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/heap/objects-visiting.cc ('k') | 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/accessors.h" 8 #include "src/accessors.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/ast.h" 10 #include "src/ast.h"
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 void BuildNonGlobalObjectCheck(HValue* receiver); 1351 void BuildNonGlobalObjectCheck(HValue* receiver);
1352 1352
1353 HValue* BuildKeyedLookupCacheHash(HValue* object, 1353 HValue* BuildKeyedLookupCacheHash(HValue* object,
1354 HValue* key); 1354 HValue* key);
1355 1355
1356 HValue* BuildUncheckedDictionaryElementLoad(HValue* receiver, 1356 HValue* BuildUncheckedDictionaryElementLoad(HValue* receiver,
1357 HValue* elements, HValue* key, 1357 HValue* elements, HValue* key,
1358 HValue* hash, 1358 HValue* hash,
1359 LanguageMode language_mode); 1359 LanguageMode language_mode);
1360 1360
1361 // ES6 section 7.4.7 CreateIterResultObject ( value, done )
1362 HValue* BuildCreateIterResultObject(HValue* value, HValue* done);
1363
1361 HValue* BuildRegExpConstructResult(HValue* length, 1364 HValue* BuildRegExpConstructResult(HValue* length,
1362 HValue* index, 1365 HValue* index,
1363 HValue* input); 1366 HValue* input);
1364 1367
1365 // Allocates a new object according with the given allocation properties. 1368 // Allocates a new object according with the given allocation properties.
1366 HAllocate* BuildAllocate(HValue* object_size, 1369 HAllocate* BuildAllocate(HValue* object_size,
1367 HType type, 1370 HType type,
1368 InstanceType instance_type, 1371 InstanceType instance_type,
1369 HAllocationMode allocation_mode); 1372 HAllocationMode allocation_mode);
1370 // Computes the sum of two string lengths, taking care of overflow handling. 1373 // Computes the sum of two string lengths, taking care of overflow handling.
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
2260 /* ES6 Collections */ \ 2263 /* ES6 Collections */ \
2261 F(MapClear) \ 2264 F(MapClear) \
2262 F(MapInitialize) \ 2265 F(MapInitialize) \
2263 F(SetClear) \ 2266 F(SetClear) \
2264 F(SetInitialize) \ 2267 F(SetInitialize) \
2265 F(FixedArrayGet) \ 2268 F(FixedArrayGet) \
2266 F(FixedArraySet) \ 2269 F(FixedArraySet) \
2267 F(JSCollectionGetTable) \ 2270 F(JSCollectionGetTable) \
2268 F(StringGetRawHashField) \ 2271 F(StringGetRawHashField) \
2269 F(TheHole) \ 2272 F(TheHole) \
2273 /* ES6 Iterators */ \
2274 F(CreateIterResultObject) \
2270 /* Arrays */ \ 2275 /* Arrays */ \
2271 F(HasFastPackedElements) \ 2276 F(HasFastPackedElements) \
2272 F(GetPrototype) \ 2277 F(GetPrototype) \
2273 /* Strings */ \ 2278 /* Strings */ \
2274 F(StringGetLength) \ 2279 F(StringGetLength) \
2275 /* JSValue */ \ 2280 /* JSValue */ \
2276 F(JSValueGetValue) 2281 F(JSValueGetValue)
2277 2282
2278 #define GENERATOR_DECLARATION(Name) void Generate##Name(CallRuntime* call); 2283 #define GENERATOR_DECLARATION(Name) void Generate##Name(CallRuntime* call);
2279 FOR_EACH_HYDROGEN_INTRINSIC(GENERATOR_DECLARATION) 2284 FOR_EACH_HYDROGEN_INTRINSIC(GENERATOR_DECLARATION)
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
3065 } 3070 }
3066 3071
3067 private: 3072 private:
3068 HGraphBuilder* builder_; 3073 HGraphBuilder* builder_;
3069 }; 3074 };
3070 3075
3071 3076
3072 } } // namespace v8::internal 3077 } } // namespace v8::internal
3073 3078
3074 #endif // V8_HYDROGEN_H_ 3079 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/heap/objects-visiting.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698