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

Side by Side Diff: src/api.cc

Issue 4888002: [Isolates] Pass isolate to VMState constructor. (Closed)
Patch Set: Created 10 years, 1 month 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
« no previous file with comments | « no previous file | src/builtins.cc » ('j') | src/top.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "profile-generator-inl.h" 42 #include "profile-generator-inl.h"
43 #include "serialize.h" 43 #include "serialize.h"
44 #include "snapshot.h" 44 #include "snapshot.h"
45 #include "v8threads.h" 45 #include "v8threads.h"
46 #include "version.h" 46 #include "version.h"
47 47
48 #include "../include/v8-profiler.h" 48 #include "../include/v8-profiler.h"
49 49
50 #define LOG_API(expr) LOG(ApiEntryCall(expr)) 50 #define LOG_API(expr) LOG(ApiEntryCall(expr))
51 51
52 // TODO(isolates): avoid repeated TLS reads in function prologues.
52 #ifdef ENABLE_VMSTATE_TRACKING 53 #ifdef ENABLE_VMSTATE_TRACKING
53 #define ENTER_V8 i::VMState __state__(i::OTHER) 54 #define ENTER_V8 i::VMState __state__(i::Isolate::Current(), i::OTHER)
54 #define LEAVE_V8 i::VMState __state__(i::EXTERNAL) 55 #define LEAVE_V8 i::VMState __state__(i::Isolate::Current(), i::EXTERNAL)
55 #else 56 #else
56 #define ENTER_V8 ((void) 0) 57 #define ENTER_V8 ((void) 0)
57 #define LEAVE_V8 ((void) 0) 58 #define LEAVE_V8 ((void) 0)
58 #endif 59 #endif
59 60
60 namespace v8 { 61 namespace v8 {
61 62
62 #define ON_BAILOUT(location, code) \ 63 #define ON_BAILOUT(location, code) \
63 if (IsDeadCheck(location) || v8::V8::IsExecutionTerminating()) { \ 64 if (IsDeadCheck(location) || v8::V8::IsExecutionTerminating()) { \
64 code; \ 65 code; \
(...skipping 4941 matching lines...) Expand 10 before | Expand all | Expand 10 after
5006 5007
5007 5008
5008 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 5009 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
5009 HandleScopeImplementer* thread_local = 5010 HandleScopeImplementer* thread_local =
5010 reinterpret_cast<HandleScopeImplementer*>(storage); 5011 reinterpret_cast<HandleScopeImplementer*>(storage);
5011 thread_local->IterateThis(v); 5012 thread_local->IterateThis(v);
5012 return storage + ArchiveSpacePerThread(); 5013 return storage + ArchiveSpacePerThread();
5013 } 5014 }
5014 5015
5015 } } // namespace v8::internal 5016 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/builtins.cc » ('j') | src/top.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698