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

Side by Side Diff: src/api.cc

Issue 2098017: Guard VMState trakcing with ENABLE_VMSTATE_TRACKING instead of... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 30 matching lines...) Expand all
41 #include "snapshot.h" 41 #include "snapshot.h"
42 #include "top.h" 42 #include "top.h"
43 #include "utils.h" 43 #include "utils.h"
44 #include "v8threads.h" 44 #include "v8threads.h"
45 #include "version.h" 45 #include "version.h"
46 46
47 #include "../include/v8-profiler.h" 47 #include "../include/v8-profiler.h"
48 48
49 #define LOG_API(expr) LOG(ApiEntryCall(expr)) 49 #define LOG_API(expr) LOG(ApiEntryCall(expr))
50 50
51 #ifdef ENABLE_HEAP_PROTECTION 51 #ifdef ENABLE_VMSTATE_TRACKING
52 #define ENTER_V8 i::VMState __state__(i::OTHER) 52 #define ENTER_V8 i::VMState __state__(i::OTHER)
53 #define LEAVE_V8 i::VMState __state__(i::EXTERNAL) 53 #define LEAVE_V8 i::VMState __state__(i::EXTERNAL)
54 #else 54 #else
55 #define ENTER_V8 ((void) 0) 55 #define ENTER_V8 ((void) 0)
56 #define LEAVE_V8 ((void) 0) 56 #define LEAVE_V8 ((void) 0)
57 #endif 57 #endif
58 58
59 namespace v8 { 59 namespace v8 {
60 60
61 61
(...skipping 4332 matching lines...) Expand 10 before | Expand all | Expand 10 after
4394 4394
4395 4395
4396 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 4396 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
4397 HandleScopeImplementer* thread_local = 4397 HandleScopeImplementer* thread_local =
4398 reinterpret_cast<HandleScopeImplementer*>(storage); 4398 reinterpret_cast<HandleScopeImplementer*>(storage);
4399 thread_local->IterateThis(v); 4399 thread_local->IterateThis(v);
4400 return storage + ArchiveSpacePerThread(); 4400 return storage + ArchiveSpacePerThread();
4401 } 4401 }
4402 4402
4403 } } // namespace v8::internal 4403 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698