| 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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 } | 536 } |
| 537 } | 537 } |
| 538 // Invoke the platform-dependent code generator to do the actual | 538 // Invoke the platform-dependent code generator to do the actual |
| 539 // declaration the global functions and variables. | 539 // declaration the global functions and variables. |
| 540 DeclareGlobals(array); | 540 DeclareGlobals(array); |
| 541 } | 541 } |
| 542 } | 542 } |
| 543 | 543 |
| 544 | 544 |
| 545 int FullCodeGenerator::DeclareGlobalsFlags() { | 545 int FullCodeGenerator::DeclareGlobalsFlags() { |
| 546 ASSERT(DeclareGlobalsStrictModeFlag::is_valid(strict_mode_flag())); | 546 ASSERT(DeclareGlobalsLanguageMode::is_valid(language_mode())); |
| 547 return DeclareGlobalsEvalFlag::encode(is_eval()) | | 547 return DeclareGlobalsEvalFlag::encode(is_eval()) | |
| 548 DeclareGlobalsStrictModeFlag::encode(strict_mode_flag()) | | 548 DeclareGlobalsNativeFlag::encode(is_native()) | |
| 549 DeclareGlobalsNativeFlag::encode(is_native()); | 549 DeclareGlobalsLanguageMode::encode(language_mode()); |
| 550 } | 550 } |
| 551 | 551 |
| 552 | 552 |
| 553 void FullCodeGenerator::SetFunctionPosition(FunctionLiteral* fun) { | 553 void FullCodeGenerator::SetFunctionPosition(FunctionLiteral* fun) { |
| 554 CodeGenerator::RecordPositions(masm_, fun->start_position()); | 554 CodeGenerator::RecordPositions(masm_, fun->start_position()); |
| 555 } | 555 } |
| 556 | 556 |
| 557 | 557 |
| 558 void FullCodeGenerator::SetReturnPosition(FunctionLiteral* fun) { | 558 void FullCodeGenerator::SetReturnPosition(FunctionLiteral* fun) { |
| 559 CodeGenerator::RecordPositions(masm_, fun->end_position() - 1); | 559 CodeGenerator::RecordPositions(masm_, fun->end_position() - 1); |
| (...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1309 } | 1309 } |
| 1310 | 1310 |
| 1311 return false; | 1311 return false; |
| 1312 } | 1312 } |
| 1313 | 1313 |
| 1314 | 1314 |
| 1315 #undef __ | 1315 #undef __ |
| 1316 | 1316 |
| 1317 | 1317 |
| 1318 } } // namespace v8::internal | 1318 } } // namespace v8::internal |
| OLD | NEW |