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