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

Side by Side Diff: src/v8globals.h

Issue 7350014: Remove the ability to compile without logging and profiling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/spaces.cc ('k') | src/vm-state.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 388
389 389
390 // AccessorCallback 390 // AccessorCallback
391 struct AccessorDescriptor { 391 struct AccessorDescriptor {
392 MaybeObject* (*getter)(Object* object, void* data); 392 MaybeObject* (*getter)(Object* object, void* data);
393 MaybeObject* (*setter)(JSObject* object, Object* value, void* data); 393 MaybeObject* (*setter)(JSObject* object, Object* value, void* data);
394 void* data; 394 void* data;
395 }; 395 };
396 396
397 397
398 // Logging and profiling. 398 // Logging and profiling. A StateTag represents a possible state of
399 // A StateTag represents a possible state of the VM. When compiled with 399 // the VM. The logger maintains a stack of these. Creating a VMState
400 // ENABLE_VMSTATE_TRACKING, the logger maintains a stack of these. 400 // object enters a state by pushing on the stack, and destroying a
401 // Creating a VMState object enters a state by pushing on the stack, and 401 // VMState object leaves a state by popping the current state from the
402 // destroying a VMState object leaves a state by popping the current state 402 // stack.
403 // from the stack.
404 403
405 #define STATE_TAG_LIST(V) \ 404 #define STATE_TAG_LIST(V) \
406 V(JS) \ 405 V(JS) \
407 V(GC) \ 406 V(GC) \
408 V(COMPILER) \ 407 V(COMPILER) \
409 V(OTHER) \ 408 V(OTHER) \
410 V(EXTERNAL) 409 V(EXTERNAL)
411 410
412 enum StateTag { 411 enum StateTag {
413 #define DEF_STATE_TAG(name) name, 412 #define DEF_STATE_TAG(name) name,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 // Used to specify whether a receiver is implicitly or explicitly 502 // Used to specify whether a receiver is implicitly or explicitly
504 // provided to a call. 503 // provided to a call.
505 enum CallKind { 504 enum CallKind {
506 CALL_AS_METHOD = 0, 505 CALL_AS_METHOD = 0,
507 CALL_AS_FUNCTION 506 CALL_AS_FUNCTION
508 }; 507 };
509 508
510 } } // namespace v8::internal 509 } } // namespace v8::internal
511 510
512 #endif // V8_V8GLOBALS_H_ 511 #endif // V8_V8GLOBALS_H_
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | src/vm-state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698