| 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 3114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3125 | 3125 |
| 3126 | 3126 |
| 3127 void CodeGenerator::VisitFunctionLiteral(FunctionLiteral* node) { | 3127 void CodeGenerator::VisitFunctionLiteral(FunctionLiteral* node) { |
| 3128 #ifdef DEBUG | 3128 #ifdef DEBUG |
| 3129 int original_height = frame_->height(); | 3129 int original_height = frame_->height(); |
| 3130 #endif | 3130 #endif |
| 3131 Comment cmnt(masm_, "[ FunctionLiteral"); | 3131 Comment cmnt(masm_, "[ FunctionLiteral"); |
| 3132 | 3132 |
| 3133 // Build the function info and instantiate it. | 3133 // Build the function info and instantiate it. |
| 3134 Handle<SharedFunctionInfo> function_info = | 3134 Handle<SharedFunctionInfo> function_info = |
| 3135 Compiler::BuildFunctionInfo(node, script(), this); | 3135 Compiler::BuildFunctionInfo(node, script()); |
| 3136 // Check for stack-overflow exception. | 3136 if (function_info.is_null()) { |
| 3137 if (HasStackOverflow()) { | 3137 SetStackOverflow(); |
| 3138 ASSERT(frame_->height() == original_height); | 3138 ASSERT(frame_->height() == original_height); |
| 3139 return; | 3139 return; |
| 3140 } | 3140 } |
| 3141 InstantiateFunction(function_info); | 3141 InstantiateFunction(function_info); |
| 3142 ASSERT_EQ(original_height + 1, frame_->height()); | 3142 ASSERT_EQ(original_height + 1, frame_->height()); |
| 3143 } | 3143 } |
| 3144 | 3144 |
| 3145 | 3145 |
| 3146 void CodeGenerator::VisitSharedFunctionInfoLiteral( | 3146 void CodeGenerator::VisitSharedFunctionInfoLiteral( |
| 3147 SharedFunctionInfoLiteral* node) { | 3147 SharedFunctionInfoLiteral* node) { |
| (...skipping 4156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7304 BinaryOpIC::GetName(runtime_operands_type_)); | 7304 BinaryOpIC::GetName(runtime_operands_type_)); |
| 7305 return name_; | 7305 return name_; |
| 7306 } | 7306 } |
| 7307 | 7307 |
| 7308 | 7308 |
| 7309 #undef __ | 7309 #undef __ |
| 7310 | 7310 |
| 7311 } } // namespace v8::internal | 7311 } } // namespace v8::internal |
| 7312 | 7312 |
| 7313 #endif // V8_TARGET_ARCH_ARM | 7313 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |