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

Side by Side Diff: src/objects.h

Issue 1507273002: Make Error.prototype.toString spec compliant; and fix various side-effect-free error printing metho… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 Handle<Object> input); 1164 Handle<Object> input);
1165 1165
1166 // ES6 section 7.1.15 ToLength 1166 // ES6 section 7.1.15 ToLength
1167 MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate, 1167 MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate,
1168 Handle<Object> input); 1168 Handle<Object> input);
1169 1169
1170 // ES6 section 7.3.9 GetMethod 1170 // ES6 section 7.3.9 GetMethod
1171 MUST_USE_RESULT static MaybeHandle<Object> GetMethod( 1171 MUST_USE_RESULT static MaybeHandle<Object> GetMethod(
1172 Handle<JSReceiver> receiver, Handle<Name> name); 1172 Handle<JSReceiver> receiver, Handle<Name> name);
1173 1173
1174 // Check whether |object| is an instance of Error or NativeError.
1175 static bool IsErrorObject(Isolate* isolate, Handle<Object> object);
1176
1174 // ES6 section 12.5.6 The typeof Operator 1177 // ES6 section 12.5.6 The typeof Operator
1175 static Handle<String> TypeOf(Isolate* isolate, Handle<Object> object); 1178 static Handle<String> TypeOf(Isolate* isolate, Handle<Object> object);
1176 1179
1177 // ES6 section 12.6 Multiplicative Operators 1180 // ES6 section 12.6 Multiplicative Operators
1178 MUST_USE_RESULT static MaybeHandle<Object> Multiply( 1181 MUST_USE_RESULT static MaybeHandle<Object> Multiply(
1179 Isolate* isolate, Handle<Object> lhs, Handle<Object> rhs, 1182 Isolate* isolate, Handle<Object> lhs, Handle<Object> rhs,
1180 Strength strength = Strength::WEAK); 1183 Strength strength = Strength::WEAK);
1181 MUST_USE_RESULT static MaybeHandle<Object> Divide( 1184 MUST_USE_RESULT static MaybeHandle<Object> Divide(
1182 Isolate* isolate, Handle<Object> lhs, Handle<Object> rhs, 1185 Isolate* isolate, Handle<Object> lhs, Handle<Object> rhs,
1183 Strength strength = Strength::WEAK); 1186 Strength strength = Strength::WEAK);
(...skipping 9499 matching lines...) Expand 10 before | Expand all | Expand 10 after
10683 } 10686 }
10684 return value; 10687 return value;
10685 } 10688 }
10686 }; 10689 };
10687 10690
10688 10691
10689 } // NOLINT, false-positive due to second-order macros. 10692 } // NOLINT, false-positive due to second-order macros.
10690 } // NOLINT, false-positive due to second-order macros. 10693 } // NOLINT, false-positive due to second-order macros.
10691 10694
10692 #endif // V8_OBJECTS_H_ 10695 #endif // V8_OBJECTS_H_
OLDNEW
« src/messages.cc ('K') | « src/messages.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698