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

Side by Side Diff: src/runtime.h

Issue 12613007: Harden Function()'s parsing of function literals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Andreas Rossberg. Created 7 years, 9 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
« no previous file with comments | « src/parser.cc ('k') | src/runtime.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 // 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 F(DateCurrentTime, 0, 1) \ 258 F(DateCurrentTime, 0, 1) \
259 F(DateParseString, 2, 1) \ 259 F(DateParseString, 2, 1) \
260 F(DateLocalTimezone, 1, 1) \ 260 F(DateLocalTimezone, 1, 1) \
261 F(DateToUTC, 1, 1) \ 261 F(DateToUTC, 1, 1) \
262 F(DateMakeDay, 2, 1) \ 262 F(DateMakeDay, 2, 1) \
263 F(DateSetValue, 3, 1) \ 263 F(DateSetValue, 3, 1) \
264 \ 264 \
265 /* Numbers */ \ 265 /* Numbers */ \
266 \ 266 \
267 /* Globals */ \ 267 /* Globals */ \
268 F(CompileString, 1, 1) \ 268 F(CompileString, 2, 1) \
269 F(GlobalPrint, 1, 1) \ 269 F(GlobalPrint, 1, 1) \
270 \ 270 \
271 /* Eval */ \ 271 /* Eval */ \
272 F(GlobalReceiver, 1, 1) \ 272 F(GlobalReceiver, 1, 1) \
273 F(ResolvePossiblyDirectEval, 5, 2) \ 273 F(ResolvePossiblyDirectEval, 5, 2) \
274 \ 274 \
275 F(SetProperty, -1 /* 4 or 5 */, 1) \ 275 F(SetProperty, -1 /* 4 or 5 */, 1) \
276 F(DefineOrRedefineDataProperty, 4, 1) \ 276 F(DefineOrRedefineDataProperty, 4, 1) \
277 F(DefineOrRedefineAccessorProperty, 5, 1) \ 277 F(DefineOrRedefineAccessorProperty, 5, 1) \
278 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \ 278 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 //--------------------------------------------------------------------------- 717 //---------------------------------------------------------------------------
718 // Constants used by interface to runtime functions. 718 // Constants used by interface to runtime functions.
719 719
720 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 720 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
721 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 721 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
722 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 722 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {};
723 723
724 } } // namespace v8::internal 724 } } // namespace v8::internal
725 725
726 #endif // V8_RUNTIME_H_ 726 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698