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

Side by Side Diff: src/runtime/runtime-api.cc

Issue 847913005: move HandleApiCall builtin to assembly (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove tests Created 5 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/runtime/runtime.h" 9 #include "src/runtime/runtime.h"
10 #include "src/runtime/runtime-utils.h" 10 #include "src/runtime/runtime-utils.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 NewTypeError("duplicate_template_property", HandleVector(args, 1))); 116 NewTypeError("duplicate_template_property", HandleVector(args, 1)));
117 } 117 }
118 #endif 118 #endif
119 119
120 Handle<Object> result; 120 Handle<Object> result;
121 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 121 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
122 isolate, result, 122 isolate, result,
123 Runtime::DefineObjectProperty(object, key, value, attributes)); 123 Runtime::DefineObjectProperty(object, key, value, attributes));
124 return *result; 124 return *result;
125 } 125 }
126
127
128 RUNTIME_FUNCTION(Runtime_ThrowIllegalInvocation) {
129 HandleScope scope(isolate);
130 RUNTIME_ASSERT(args.length() == 1);
131 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
132 {
133 Handle<Object> args[1] = {function};
134 THROW_NEW_ERROR_RETURN_FAILURE(
135 isolate, NewTypeError("illegal_invocation", HandleVector(args, 1)));
136 }
137 }
126 } 138 }
127 } // namespace v8::internal 139 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/x64/code-stubs-x64.cc » ('j') | src/x64/code-stubs-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698