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

Side by Side Diff: src/builtins/builtins-internal.cc

Issue 2165593002: [builtins] Move builtins into own files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove builtins-error.cc from BUILD.gn Created 4 years, 5 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
« no previous file with comments | « src/builtins/builtins-global.cc ('k') | src/builtins/builtins-json.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "src/builtins/builtins.h"
6 #include "src/builtins/builtins-utils.h"
7
8 namespace v8 {
9 namespace internal {
10
11 BUILTIN(Illegal) {
12 UNREACHABLE();
13 return isolate->heap()->undefined_value(); // Make compiler happy.
14 }
15
16 BUILTIN(EmptyFunction) { return isolate->heap()->undefined_value(); }
17
18 // -----------------------------------------------------------------------------
19 // Throwers for restricted function properties and strict arguments object
20 // properties
21
22 BUILTIN(RestrictedFunctionPropertiesThrower) {
23 HandleScope scope(isolate);
24 THROW_NEW_ERROR_RETURN_FAILURE(
25 isolate, NewTypeError(MessageTemplate::kRestrictedFunctionProperties));
26 }
27
28 BUILTIN(RestrictedStrictArgumentsPropertiesThrower) {
29 HandleScope scope(isolate);
30 THROW_NEW_ERROR_RETURN_FAILURE(
31 isolate, NewTypeError(MessageTemplate::kStrictPoisonPill));
32 }
33
34 } // namespace internal
35 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-global.cc ('k') | src/builtins/builtins-json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698