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

Side by Side Diff: src/log-inl.h

Issue 437004: Store API callback entry address prior to entering a callback. (Closed)
Patch Set: Created 11 years 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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 case COMPILER: 48 case COMPILER:
49 return "COMPILER"; 49 return "COMPILER";
50 case OTHER: 50 case OTHER:
51 return "OTHER"; 51 return "OTHER";
52 default: 52 default:
53 UNREACHABLE(); 53 UNREACHABLE();
54 return NULL; 54 return NULL;
55 } 55 }
56 } 56 }
57 57
58 VMState::VMState(StateTag state) : disabled_(true) { 58 VMState::VMState(StateTag state) : disabled_(true), external_callback_(NULL) {
59 if (!Logger::is_logging()) { 59 if (!Logger::is_logging()) {
60 return; 60 return;
61 } 61 }
62 62
63 disabled_ = false; 63 disabled_ = false;
64 #if !defined(ENABLE_HEAP_PROTECTION) 64 #if !defined(ENABLE_HEAP_PROTECTION)
65 // When not protecting the heap, there is no difference between 65 // When not protecting the heap, there is no difference between
66 // EXTERNAL and OTHER. As an optimization in that case, we will not 66 // EXTERNAL and OTHER. As an optimization in that case, we will not
67 // perform EXTERNAL->OTHER transitions through the API. We thus 67 // perform EXTERNAL->OTHER transitions through the API. We thus
68 // compress the two states into one. 68 // compress the two states into one.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 } 118 }
119 #endif 119 #endif
120 } 120 }
121 #endif 121 #endif
122 122
123 123
124 } } // namespace v8::internal 124 } } // namespace v8::internal
125 125
126 #endif // V8_LOG_INL_H_ 126 #endif // V8_LOG_INL_H_
OLDNEW
« src/log.cc ('K') | « src/log.cc ('k') | test/cctest/test-log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698