OLD | NEW |
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 } | 150 } |
151 | 151 |
152 | 152 |
153 void TraceExtension::JSTrace(const v8::FunctionCallbackInfo<v8::Value>& args) { | 153 void TraceExtension::JSTrace(const v8::FunctionCallbackInfo<v8::Value>& args) { |
154 DoTraceHideCEntryFPAddress(GetFP(args)); | 154 DoTraceHideCEntryFPAddress(GetFP(args)); |
155 } | 155 } |
156 | 156 |
157 | 157 |
158 static Address GetJsEntrySp() { | 158 static Address GetJsEntrySp() { |
159 CHECK_NE(NULL, i::Isolate::Current()->thread_local_top()); | 159 CHECK_NE(NULL, i::Isolate::Current()->thread_local_top()); |
160 return Isolate::js_entry_sp(i::Isolate::Current()->thread_local_top()); | 160 return i::Isolate::Current()->js_entry_sp(); |
161 } | 161 } |
162 | 162 |
163 | 163 |
164 void TraceExtension::JSEntrySP( | 164 void TraceExtension::JSEntrySP( |
165 const v8::FunctionCallbackInfo<v8::Value>& args) { | 165 const v8::FunctionCallbackInfo<v8::Value>& args) { |
166 CHECK_NE(0, GetJsEntrySp()); | 166 CHECK_NE(0, GetJsEntrySp()); |
167 } | 167 } |
168 | 168 |
169 | 169 |
170 void TraceExtension::JSEntrySPLevel2( | 170 void TraceExtension::JSEntrySPLevel2( |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 CcTest::InitializeVM(TRACE_EXTENSION); | 389 CcTest::InitializeVM(TRACE_EXTENSION); |
390 v8::HandleScope scope(CcTest::isolate()); | 390 v8::HandleScope scope(CcTest::isolate()); |
391 CHECK_EQ(0, GetJsEntrySp()); | 391 CHECK_EQ(0, GetJsEntrySp()); |
392 CompileRun("a = 1; b = a + 1;"); | 392 CompileRun("a = 1; b = a + 1;"); |
393 CHECK_EQ(0, GetJsEntrySp()); | 393 CHECK_EQ(0, GetJsEntrySp()); |
394 CompileRun("js_entry_sp();"); | 394 CompileRun("js_entry_sp();"); |
395 CHECK_EQ(0, GetJsEntrySp()); | 395 CHECK_EQ(0, GetJsEntrySp()); |
396 CompileRun("js_entry_sp_level2();"); | 396 CompileRun("js_entry_sp_level2();"); |
397 CHECK_EQ(0, GetJsEntrySp()); | 397 CHECK_EQ(0, GetJsEntrySp()); |
398 } | 398 } |
OLD | NEW |