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

Side by Side Diff: src/runtime.cc

Issue 270573003: Rename NewFunction without prototype to NewFunctionWithoutPrototype (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reverse argument order to be consistent Created 6 years, 7 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
« src/factory.cc ('K') | « src/factory.cc ('k') | no next file » | 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 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "v8.h" 8 #include "v8.h"
9 9
10 #include "accessors.h" 10 #include "accessors.h"
(...skipping 2780 matching lines...) Expand 10 before | Expand all | Expand 10 after
2791 return Smi::FromInt(0); 2791 return Smi::FromInt(0);
2792 } 2792 }
2793 2793
2794 2794
2795 static Handle<JSFunction> InstallBuiltin(Isolate* isolate, 2795 static Handle<JSFunction> InstallBuiltin(Isolate* isolate,
2796 Handle<JSObject> holder, 2796 Handle<JSObject> holder,
2797 const char* name, 2797 const char* name,
2798 Builtins::Name builtin_name) { 2798 Builtins::Name builtin_name) {
2799 Handle<String> key = isolate->factory()->InternalizeUtf8String(name); 2799 Handle<String> key = isolate->factory()->InternalizeUtf8String(name);
2800 Handle<Code> code(isolate->builtins()->builtin(builtin_name)); 2800 Handle<Code> code(isolate->builtins()->builtin(builtin_name));
2801 Handle<JSFunction> optimized = isolate->factory()->NewFunction(key, code); 2801 Handle<JSFunction> optimized =
2802 isolate->factory()->NewFunctionWithoutPrototype(key, code);
2802 optimized->shared()->DontAdaptArguments(); 2803 optimized->shared()->DontAdaptArguments();
2803 JSReceiver::SetProperty(holder, key, optimized, NONE, STRICT).Assert(); 2804 JSReceiver::SetProperty(holder, key, optimized, NONE, STRICT).Assert();
2804 return optimized; 2805 return optimized;
2805 } 2806 }
2806 2807
2807 2808
2808 RUNTIME_FUNCTION(Runtime_SpecialArrayFunctions) { 2809 RUNTIME_FUNCTION(Runtime_SpecialArrayFunctions) {
2809 HandleScope scope(isolate); 2810 HandleScope scope(isolate);
2810 ASSERT(args.length() == 1); 2811 ASSERT(args.length() == 1);
2811 CONVERT_ARG_HANDLE_CHECKED(JSObject, holder, 0); 2812 CONVERT_ARG_HANDLE_CHECKED(JSObject, holder, 0);
(...skipping 12422 matching lines...) Expand 10 before | Expand all | Expand 10 after
15234 } 15235 }
15235 return NULL; 15236 return NULL;
15236 } 15237 }
15237 15238
15238 15239
15239 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15240 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15240 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15241 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15241 } 15242 }
15242 15243
15243 } } // namespace v8::internal 15244 } } // namespace v8::internal
OLDNEW
« src/factory.cc ('K') | « src/factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698