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

Side by Side Diff: src/objects.h

Issue 1130133003: Migrate error messages, part 12. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@messages_11
Patch Set: Created 5 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
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 7984 matching lines...) Expand 10 before | Expand all | Expand 10 after
7995 7995
7996 // Representation of message objects used for error reporting through 7996 // Representation of message objects used for error reporting through
7997 // the API. The messages are formatted in JavaScript so this object is 7997 // the API. The messages are formatted in JavaScript so this object is
7998 // a real JavaScript object. The information used for formatting the 7998 // a real JavaScript object. The information used for formatting the
7999 // error messages are not directly accessible from JavaScript to 7999 // error messages are not directly accessible from JavaScript to
8000 // prevent leaking information to user code called during error 8000 // prevent leaking information to user code called during error
8001 // formatting. 8001 // formatting.
8002 class JSMessageObject: public JSObject { 8002 class JSMessageObject: public JSObject {
8003 public: 8003 public:
8004 // [type]: the type of error message. 8004 // [type]: the type of error message.
8005 DECL_ACCESSORS(type, String) 8005 inline int type() const;
8006 inline void set_type(int value);
8006 8007
8007 // [arguments]: the arguments for formatting the error message. 8008 // [arguments]: the arguments for formatting the error message.
8008 DECL_ACCESSORS(arguments, JSArray) 8009 DECL_ACCESSORS(argument, Object)
8009 8010
8010 // [script]: the script from which the error message originated. 8011 // [script]: the script from which the error message originated.
8011 DECL_ACCESSORS(script, Object) 8012 DECL_ACCESSORS(script, Object)
8012 8013
8013 // [stack_frames]: an array of stack frames for this error object. 8014 // [stack_frames]: an array of stack frames for this error object.
8014 DECL_ACCESSORS(stack_frames, Object) 8015 DECL_ACCESSORS(stack_frames, Object)
8015 8016
8016 // [start_position]: the start position in the script for the error message. 8017 // [start_position]: the start position in the script for the error message.
8017 inline int start_position() const; 8018 inline int start_position() const;
8018 inline void set_start_position(int value); 8019 inline void set_start_position(int value);
(...skipping 3096 matching lines...) Expand 10 before | Expand all | Expand 10 after
11115 } else { 11116 } else {
11116 value &= ~(1 << bit_position); 11117 value &= ~(1 << bit_position);
11117 } 11118 }
11118 return value; 11119 return value;
11119 } 11120 }
11120 }; 11121 };
11121 11122
11122 } } // namespace v8::internal 11123 } } // namespace v8::internal
11123 11124
11124 #endif // V8_OBJECTS_H_ 11125 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/objects-debug.cc » ('j') | test/mjsunit/regexp.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698