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

Side by Side Diff: include/v8-debug.h

Issue 22715004: Version 3.20.15 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Add TypedArray API and correctness patches r16033 and r16084 Created 7 years, 4 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
« no previous file with comments | « include/v8.h ('k') | include/v8-preparser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 12 matching lines...) Expand all
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_V8_DEBUG_H_ 28 #ifndef V8_V8_DEBUG_H_
29 #define V8_V8_DEBUG_H_ 29 #define V8_V8_DEBUG_H_
30 30
31 #include "v8.h" 31 #include "v8.h"
32 32
33 #ifdef _WIN32
34 typedef int int32_t;
35 typedef unsigned int uint32_t;
36 typedef unsigned short uint16_t; // NOLINT
37 typedef long long int64_t; // NOLINT
38
39 // Setup for Windows DLL export/import. See v8.h in this directory for
40 // information on how to build/use V8 as a DLL.
41 #if defined(BUILDING_V8_SHARED) && defined(USING_V8_SHARED)
42 #error both BUILDING_V8_SHARED and USING_V8_SHARED are set - please check the\
43 build configuration to ensure that at most one of these is set
44 #endif
45
46 #ifdef BUILDING_V8_SHARED
47 #define EXPORT __declspec(dllexport)
48 #elif USING_V8_SHARED
49 #define EXPORT __declspec(dllimport)
50 #else
51 #define EXPORT
52 #endif
53
54 #else // _WIN32
55
56 // Setup for Linux shared library export. See v8.h in this directory for
57 // information on how to build/use V8 as shared library.
58 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED)
59 #define EXPORT __attribute__ ((visibility("default")))
60 #else // defined(__GNUC__) && (__GNUC__ >= 4)
61 #define EXPORT
62 #endif // defined(__GNUC__) && (__GNUC__ >= 4)
63
64 #endif // _WIN32
65
66
33 /** 67 /**
34 * Debugger support for the V8 JavaScript engine. 68 * Debugger support for the V8 JavaScript engine.
35 */ 69 */
36 namespace v8 { 70 namespace v8 {
37 71
38 // Debug events which can occur in the V8 JavaScript engine. 72 // Debug events which can occur in the V8 JavaScript engine.
39 enum DebugEvent { 73 enum DebugEvent {
40 Break = 1, 74 Break = 1,
41 Exception = 2, 75 Exception = 2,
42 NewFunction = 3, 76 NewFunction = 3,
43 BeforeCompile = 4, 77 BeforeCompile = 4,
44 AfterCompile = 5, 78 AfterCompile = 5,
45 ScriptCollected = 6, 79 ScriptCollected = 6,
46 BreakForCommand = 7 80 BreakForCommand = 7
47 }; 81 };
48 82
49 83
50 class V8_EXPORT Debug { 84 class EXPORT Debug {
51 public: 85 public:
52 /** 86 /**
53 * A client object passed to the v8 debugger whose ownership will be taken by 87 * A client object passed to the v8 debugger whose ownership will be taken by
54 * it. v8 is always responsible for deleting the object. 88 * it. v8 is always responsible for deleting the object.
55 */ 89 */
56 class ClientData { 90 class ClientData {
57 public: 91 public:
58 virtual ~ClientData() {} 92 virtual ~ClientData() {}
59 }; 93 };
60 94
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 }; 401 };
368 402
369 403
370 } // namespace v8 404 } // namespace v8
371 405
372 406
373 #undef EXPORT 407 #undef EXPORT
374 408
375 409
376 #endif // V8_V8_DEBUG_H_ 410 #endif // V8_V8_DEBUG_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | include/v8-preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698