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

Side by Side Diff: src/runtime.h

Issue 7736018: Make functions on the built-in object non-writable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/full-codegen-mips.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 F(NewFunctionContext, 1, 1) \ 310 F(NewFunctionContext, 1, 1) \
311 F(PushWithContext, 2, 1) \ 311 F(PushWithContext, 2, 1) \
312 F(PushCatchContext, 3, 1) \ 312 F(PushCatchContext, 3, 1) \
313 F(PushBlockContext, 2, 1) \ 313 F(PushBlockContext, 2, 1) \
314 F(DeleteContextSlot, 2, 1) \ 314 F(DeleteContextSlot, 2, 1) \
315 F(LoadContextSlot, 2, 2) \ 315 F(LoadContextSlot, 2, 2) \
316 F(LoadContextSlotNoReferenceError, 2, 2) \ 316 F(LoadContextSlotNoReferenceError, 2, 2) \
317 F(StoreContextSlot, 4, 1) \ 317 F(StoreContextSlot, 4, 1) \
318 \ 318 \
319 /* Declarations and initialization */ \ 319 /* Declarations and initialization */ \
320 F(DeclareGlobals, 4, 1) \ 320 F(DeclareGlobals, 3, 1) \
321 F(DeclareContextSlot, 4, 1) \ 321 F(DeclareContextSlot, 4, 1) \
322 F(InitializeVarGlobal, -1 /* 2 or 3 */, 1) \ 322 F(InitializeVarGlobal, -1 /* 2 or 3 */, 1) \
323 F(InitializeConstGlobal, 2, 1) \ 323 F(InitializeConstGlobal, 2, 1) \
324 F(InitializeConstContextSlot, 3, 1) \ 324 F(InitializeConstContextSlot, 3, 1) \
325 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ 325 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \
326 \ 326 \
327 /* Debugging */ \ 327 /* Debugging */ \
328 F(DebugPrint, 1, 1) \ 328 F(DebugPrint, 1, 1) \
329 F(DebugTrace, 0, 1) \ 329 F(DebugTrace, 0, 1) \
330 F(TraceEnter, 0, 1) \ 330 F(TraceEnter, 0, 1) \
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 656
657 // This function is used in FunctionNameUsing* tests. 657 // This function is used in FunctionNameUsing* tests.
658 static Object* FindSharedFunctionInfoInScript(Isolate* isolate, 658 static Object* FindSharedFunctionInfoInScript(Isolate* isolate,
659 Handle<Script> script, 659 Handle<Script> script,
660 int position); 660 int position);
661 661
662 // Helper functions used stubs. 662 // Helper functions used stubs.
663 static void PerformGC(Object* result); 663 static void PerformGC(Object* result);
664 }; 664 };
665 665
666
667 //---------------------------------------------------------------------------
668 // Constants used by interface to runtime functions.
669
670 enum kDeclareGlobalsFlags {
671 kDeclareGlobalsEvalFlag = 1 << 0,
672 kDeclareGlobalsStrictModeFlag = 1 << 1,
673 kDeclareGlobalsNativeFlag = 1 << 2
674 };
675
666 } } // namespace v8::internal 676 } } // namespace v8::internal
667 677
668 #endif // V8_RUNTIME_H_ 678 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698