| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 using v8::Value; | 47 using v8::Value; |
| 48 | 48 |
| 49 using v8::internal::byte; | 49 using v8::internal::byte; |
| 50 using v8::internal::Address; | 50 using v8::internal::Address; |
| 51 using v8::internal::Handle; | 51 using v8::internal::Handle; |
| 52 using v8::internal::Isolate; | 52 using v8::internal::Isolate; |
| 53 using v8::internal::JSFunction; | 53 using v8::internal::JSFunction; |
| 54 using v8::internal::StackTracer; | 54 using v8::internal::StackTracer; |
| 55 using v8::internal::TickSample; | 55 using v8::internal::TickSample; |
| 56 | 56 |
| 57 namespace i = v8::internal; | |
| 58 | |
| 59 | 57 |
| 60 static v8::Persistent<v8::Context> env; | 58 static v8::Persistent<v8::Context> env; |
| 61 | 59 |
| 62 | 60 |
| 63 static struct { | 61 static struct { |
| 64 TickSample* sample; | 62 TickSample* sample; |
| 65 } trace_env = { NULL }; | 63 } trace_env = { NULL }; |
| 66 | 64 |
| 67 | 65 |
| 68 static void InitTraceEnv(TickSample* sample) { | 66 static void InitTraceEnv(TickSample* sample) { |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 InitializeVM(); | 402 InitializeVM(); |
| 405 v8::HandleScope scope; | 403 v8::HandleScope scope; |
| 406 CHECK_EQ(0, GetJsEntrySp()); | 404 CHECK_EQ(0, GetJsEntrySp()); |
| 407 CompileRun("a = 1; b = a + 1;"); | 405 CompileRun("a = 1; b = a + 1;"); |
| 408 CHECK_EQ(0, GetJsEntrySp()); | 406 CHECK_EQ(0, GetJsEntrySp()); |
| 409 CompileRun("js_entry_sp();"); | 407 CompileRun("js_entry_sp();"); |
| 410 CHECK_EQ(0, GetJsEntrySp()); | 408 CHECK_EQ(0, GetJsEntrySp()); |
| 411 CompileRun("js_entry_sp_level2();"); | 409 CompileRun("js_entry_sp_level2();"); |
| 412 CHECK_EQ(0, GetJsEntrySp()); | 410 CHECK_EQ(0, GetJsEntrySp()); |
| 413 } | 411 } |
| OLD | NEW |