| OLD | NEW |
| 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 11 matching lines...) Expand all Loading... |
| 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 | 28 |
| 29 #include "v8.h" | 29 #include "v8.h" |
| 30 | 30 |
| 31 #include "liveedit.h" | 31 #include "liveedit.h" |
| 32 |
| 32 #include "compiler.h" | 33 #include "compiler.h" |
| 34 #include "debug.h" |
| 35 #include "global-handles.h" |
| 36 #include "memory.h" |
| 33 #include "oprofile-agent.h" | 37 #include "oprofile-agent.h" |
| 38 #include "parser.h" |
| 39 #include "scopeinfo.h" |
| 34 #include "scopes.h" | 40 #include "scopes.h" |
| 35 #include "scopeinfo.h" | |
| 36 #include "global-handles.h" | |
| 37 #include "debug.h" | |
| 38 #include "memory.h" | |
| 39 | 41 |
| 40 namespace v8 { | 42 namespace v8 { |
| 41 namespace internal { | 43 namespace internal { |
| 42 | 44 |
| 43 | 45 |
| 44 #ifdef ENABLE_DEBUGGER_SUPPORT | 46 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 45 | 47 |
| 46 | 48 |
| 47 // A simple implementation of dynamic programming algorithm. It solves | 49 // A simple implementation of dynamic programming algorithm. It solves |
| 48 // the problem of finding the difference of 2 arrays. It uses a table of results | 50 // the problem of finding the difference of 2 arrays. It uses a table of results |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 Extension* extension = NULL; | 404 Extension* extension = NULL; |
| 403 | 405 |
| 404 PostponeInterruptsScope postpone; | 406 PostponeInterruptsScope postpone; |
| 405 | 407 |
| 406 // Only allow non-global compiles for eval. | 408 // Only allow non-global compiles for eval. |
| 407 ASSERT(is_eval || is_global); | 409 ASSERT(is_eval || is_global); |
| 408 | 410 |
| 409 // Build AST. | 411 // Build AST. |
| 410 ScriptDataImpl* pre_data = NULL; | 412 ScriptDataImpl* pre_data = NULL; |
| 411 EagerCompilationInfo info(script, is_eval); | 413 EagerCompilationInfo info(script, is_eval); |
| 412 FunctionLiteral* lit = MakeAST(is_global, script, extension, pre_data); | 414 FunctionLiteral* lit = |
| 415 Parser::MakeAST(is_global, script, extension, pre_data); |
| 413 | 416 |
| 414 // Check for parse errors. | 417 // Check for parse errors. |
| 415 if (lit == NULL) { | 418 if (lit == NULL) { |
| 416 ASSERT(Top::has_pending_exception()); | 419 ASSERT(Top::has_pending_exception()); |
| 417 return; | 420 return; |
| 418 } | 421 } |
| 419 info.set_function(lit); | 422 info.set_function(lit); |
| 420 | 423 |
| 421 // Compile the code. | 424 // Compile the code. |
| 422 LiveEditFunctionTracker tracker(lit); | 425 LiveEditFunctionTracker tracker(lit); |
| (...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1476 | 1479 |
| 1477 bool LiveEditFunctionTracker::IsActive() { | 1480 bool LiveEditFunctionTracker::IsActive() { |
| 1478 return false; | 1481 return false; |
| 1479 } | 1482 } |
| 1480 | 1483 |
| 1481 #endif // ENABLE_DEBUGGER_SUPPORT | 1484 #endif // ENABLE_DEBUGGER_SUPPORT |
| 1482 | 1485 |
| 1483 | 1486 |
| 1484 | 1487 |
| 1485 } } // namespace v8::internal | 1488 } } // namespace v8::internal |
| OLD | NEW |