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

Side by Side Diff: src/runtime.h

Issue 22545007: Hack forEach to use HasFastPackedElements (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Branch on proxies Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 \ 443 \
444 /* Pseudo functions - handled as macros by parser */ \ 444 /* Pseudo functions - handled as macros by parser */ \
445 F(IS_VAR, 1, 1) \ 445 F(IS_VAR, 1, 1) \
446 \ 446 \
447 /* expose boolean functions from objects-inl.h */ \ 447 /* expose boolean functions from objects-inl.h */ \
448 F(HasFastSmiElements, 1, 1) \ 448 F(HasFastSmiElements, 1, 1) \
449 F(HasFastSmiOrObjectElements, 1, 1) \ 449 F(HasFastSmiOrObjectElements, 1, 1) \
450 F(HasFastObjectElements, 1, 1) \ 450 F(HasFastObjectElements, 1, 1) \
451 F(HasFastDoubleElements, 1, 1) \ 451 F(HasFastDoubleElements, 1, 1) \
452 F(HasFastHoleyElements, 1, 1) \ 452 F(HasFastHoleyElements, 1, 1) \
453 F(HasFastPackedElements, 1, 1) \
453 F(HasDictionaryElements, 1, 1) \ 454 F(HasDictionaryElements, 1, 1) \
454 F(HasNonStrictArgumentsElements, 1, 1) \ 455 F(HasNonStrictArgumentsElements, 1, 1) \
455 F(HasExternalPixelElements, 1, 1) \ 456 F(HasExternalPixelElements, 1, 1) \
456 F(HasExternalArrayElements, 1, 1) \ 457 F(HasExternalArrayElements, 1, 1) \
457 F(HasExternalByteElements, 1, 1) \ 458 F(HasExternalByteElements, 1, 1) \
458 F(HasExternalUnsignedByteElements, 1, 1) \ 459 F(HasExternalUnsignedByteElements, 1, 1) \
459 F(HasExternalShortElements, 1, 1) \ 460 F(HasExternalShortElements, 1, 1) \
460 F(HasExternalUnsignedShortElements, 1, 1) \ 461 F(HasExternalUnsignedShortElements, 1, 1) \
461 F(HasExternalIntElements, 1, 1) \ 462 F(HasExternalIntElements, 1, 1) \
462 F(HasExternalUnsignedIntElements, 1, 1) \ 463 F(HasExternalUnsignedIntElements, 1, 1) \
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 //--------------------------------------------------------------------------- 833 //---------------------------------------------------------------------------
833 // Constants used by interface to runtime functions. 834 // Constants used by interface to runtime functions.
834 835
835 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 836 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
836 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 837 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
837 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 838 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {};
838 839
839 } } // namespace v8::internal 840 } } // namespace v8::internal
840 841
841 #endif // V8_RUNTIME_H_ 842 #endif // V8_RUNTIME_H_
OLDNEW
« src/array.js ('K') | « src/objects-inl.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698