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

Side by Side Diff: src/runtime/runtime.h

Issue 2620943002: [ESnext] Implement Object Rest (Closed)
Patch Set: fix nits Created 3 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/parsing/preparser.h ('k') | src/runtime/runtime-object.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_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 F(NumberToString, 1, 1) \ 378 F(NumberToString, 1, 1) \
379 F(NumberToStringSkipCache, 1, 1) \ 379 F(NumberToStringSkipCache, 1, 1) \
380 F(NumberToSmi, 1, 1) \ 380 F(NumberToSmi, 1, 1) \
381 F(SmiLexicographicCompare, 2, 1) \ 381 F(SmiLexicographicCompare, 2, 1) \
382 F(MaxSmi, 0, 1) \ 382 F(MaxSmi, 0, 1) \
383 F(IsSmi, 1, 1) \ 383 F(IsSmi, 1, 1) \
384 F(GetRootNaN, 0, 1) \ 384 F(GetRootNaN, 0, 1) \
385 F(GetHoleNaNUpper, 0, 1) \ 385 F(GetHoleNaNUpper, 0, 1) \
386 F(GetHoleNaNLower, 0, 1) 386 F(GetHoleNaNLower, 0, 1)
387 387
388 #define FOR_EACH_INTRINSIC_OBJECT(F) \ 388 #define FOR_EACH_INTRINSIC_OBJECT(F) \
389 F(GetPrototype, 1, 1) \ 389 F(GetPrototype, 1, 1) \
390 F(ObjectHasOwnProperty, 2, 1) \ 390 F(ObjectHasOwnProperty, 2, 1) \
391 F(ObjectCreate, 2, 1) \ 391 F(ObjectCreate, 2, 1) \
392 F(InternalSetPrototype, 2, 1) \ 392 F(InternalSetPrototype, 2, 1) \
393 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ 393 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \
394 F(GetProperty, 2, 1) \ 394 F(GetProperty, 2, 1) \
395 F(KeyedGetProperty, 2, 1) \ 395 F(KeyedGetProperty, 2, 1) \
396 F(AddNamedProperty, 4, 1) \ 396 F(AddNamedProperty, 4, 1) \
397 F(SetProperty, 4, 1) \ 397 F(SetProperty, 4, 1) \
398 F(AddElement, 3, 1) \ 398 F(AddElement, 3, 1) \
399 F(AppendElement, 2, 1) \ 399 F(AppendElement, 2, 1) \
400 F(DeleteProperty_Sloppy, 2, 1) \ 400 F(DeleteProperty_Sloppy, 2, 1) \
401 F(DeleteProperty_Strict, 2, 1) \ 401 F(DeleteProperty_Strict, 2, 1) \
402 F(HasProperty, 2, 1) \ 402 F(HasProperty, 2, 1) \
403 F(GetOwnPropertyKeys, 2, 1) \ 403 F(GetOwnPropertyKeys, 2, 1) \
404 F(GetInterceptorInfo, 1, 1) \ 404 F(GetInterceptorInfo, 1, 1) \
405 F(ToFastProperties, 1, 1) \ 405 F(ToFastProperties, 1, 1) \
406 F(AllocateHeapNumber, 0, 1) \ 406 F(AllocateHeapNumber, 0, 1) \
407 F(NewObject, 2, 1) \ 407 F(NewObject, 2, 1) \
408 F(FinalizeInstanceSize, 1, 1) \ 408 F(FinalizeInstanceSize, 1, 1) \
409 F(LoadMutableDouble, 2, 1) \ 409 F(LoadMutableDouble, 2, 1) \
410 F(TryMigrateInstance, 1, 1) \ 410 F(TryMigrateInstance, 1, 1) \
411 F(IsJSGlobalProxy, 1, 1) \ 411 F(IsJSGlobalProxy, 1, 1) \
412 F(DefineAccessorPropertyUnchecked, 5, 1) \ 412 F(DefineAccessorPropertyUnchecked, 5, 1) \
413 F(DefineDataPropertyInLiteral, 6, 1) \ 413 F(DefineDataPropertyInLiteral, 6, 1) \
414 F(GetDataProperty, 2, 1) \ 414 F(GetDataProperty, 2, 1) \
415 F(GetConstructorName, 1, 1) \ 415 F(GetConstructorName, 1, 1) \
416 F(HasFastPackedElements, 1, 1) \ 416 F(HasFastPackedElements, 1, 1) \
417 F(ValueOf, 1, 1) \ 417 F(ValueOf, 1, 1) \
418 F(IsJSReceiver, 1, 1) \ 418 F(IsJSReceiver, 1, 1) \
419 F(ClassOf, 1, 1) \ 419 F(ClassOf, 1, 1) \
420 F(CopyDataProperties, 2, 1) \ 420 F(CopyDataProperties, 2, 1) \
421 F(DefineGetterPropertyUnchecked, 4, 1) \ 421 F(CopyDataPropertiesWithExcludedProperties, -1 /* >= 1 */, 1) \
422 F(DefineSetterPropertyUnchecked, 4, 1) \ 422 F(DefineGetterPropertyUnchecked, 4, 1) \
423 F(ToObject, 1, 1) \ 423 F(DefineSetterPropertyUnchecked, 4, 1) \
424 F(ToPrimitive, 1, 1) \ 424 F(ToObject, 1, 1) \
425 F(ToPrimitive_Number, 1, 1) \ 425 F(ToPrimitive, 1, 1) \
426 F(ToNumber, 1, 1) \ 426 F(ToPrimitive_Number, 1, 1) \
427 F(ToInteger, 1, 1) \ 427 F(ToNumber, 1, 1) \
428 F(ToLength, 1, 1) \ 428 F(ToInteger, 1, 1) \
429 F(ToString, 1, 1) \ 429 F(ToLength, 1, 1) \
430 F(ToName, 1, 1) \ 430 F(ToString, 1, 1) \
431 F(SameValue, 2, 1) \ 431 F(ToName, 1, 1) \
432 F(SameValueZero, 2, 1) \ 432 F(SameValue, 2, 1) \
433 F(Compare, 3, 1) \ 433 F(SameValueZero, 2, 1) \
434 F(HasInPrototypeChain, 2, 1) \ 434 F(Compare, 3, 1) \
435 F(CreateIterResultObject, 2, 1) \ 435 F(HasInPrototypeChain, 2, 1) \
436 F(CreateKeyValueArray, 2, 1) \ 436 F(CreateIterResultObject, 2, 1) \
437 F(IsAccessCheckNeeded, 1, 1) \ 437 F(CreateKeyValueArray, 2, 1) \
438 F(IsAccessCheckNeeded, 1, 1) \
438 F(CreateDataProperty, 3, 1) 439 F(CreateDataProperty, 3, 1)
439 440
440 #define FOR_EACH_INTRINSIC_OPERATORS(F) \ 441 #define FOR_EACH_INTRINSIC_OPERATORS(F) \
441 F(Multiply, 2, 1) \ 442 F(Multiply, 2, 1) \
442 F(Divide, 2, 1) \ 443 F(Divide, 2, 1) \
443 F(Modulus, 2, 1) \ 444 F(Modulus, 2, 1) \
444 F(Add, 2, 1) \ 445 F(Add, 2, 1) \
445 F(Subtract, 2, 1) \ 446 F(Subtract, 2, 1) \
446 F(ShiftLeft, 2, 1) \ 447 F(ShiftLeft, 2, 1) \
447 F(ShiftRight, 2, 1) \ 448 F(ShiftRight, 2, 1) \
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 1152
1152 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1153 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1153 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1154 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1154 STATIC_ASSERT(LANGUAGE_END == 2); 1155 STATIC_ASSERT(LANGUAGE_END == 2);
1155 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; 1156 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {};
1156 1157
1157 } // namespace internal 1158 } // namespace internal
1158 } // namespace v8 1159 } // namespace v8
1159 1160
1160 #endif // V8_RUNTIME_RUNTIME_H_ 1161 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/parsing/preparser.h ('k') | src/runtime/runtime-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698