| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 3895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3906 void CodeGenerator::RecordStatementPosition(Node* node) { | 3906 void CodeGenerator::RecordStatementPosition(Node* node) { |
| 3907 if (FLAG_debug_info) { | 3907 if (FLAG_debug_info) { |
| 3908 int pos = node->statement_pos(); | 3908 int pos = node->statement_pos(); |
| 3909 if (pos != RelocInfo::kNoPosition) { | 3909 if (pos != RelocInfo::kNoPosition) { |
| 3910 __ RecordStatementPosition(pos); | 3910 __ RecordStatementPosition(pos); |
| 3911 } | 3911 } |
| 3912 } | 3912 } |
| 3913 } | 3913 } |
| 3914 | 3914 |
| 3915 | 3915 |
| 3916 bool CodeGenerator::IsActualFunctionReturn(JumpTarget* target) { |
| 3917 return (target == &function_return_ && !function_return_is_shadowed_); |
| 3918 } |
| 3919 |
| 3920 |
| 3916 #undef __ | 3921 #undef __ |
| 3917 #define __ masm-> | 3922 #define __ masm-> |
| 3918 | 3923 |
| 3919 Handle<String> Reference::GetName() { | 3924 Handle<String> Reference::GetName() { |
| 3920 ASSERT(type_ == NAMED); | 3925 ASSERT(type_ == NAMED); |
| 3921 Property* property = expression_->AsProperty(); | 3926 Property* property = expression_->AsProperty(); |
| 3922 if (property == NULL) { | 3927 if (property == NULL) { |
| 3923 // Global variable reference treated as a named property reference. | 3928 // Global variable reference treated as a named property reference. |
| 3924 VariableProxy* proxy = expression_->AsVariableProxy(); | 3929 VariableProxy* proxy = expression_->AsVariableProxy(); |
| 3925 ASSERT(proxy->AsVariable() != NULL); | 3930 ASSERT(proxy->AsVariable() != NULL); |
| (...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5333 | 5338 |
| 5334 // Slow-case: Go through the JavaScript implementation. | 5339 // Slow-case: Go through the JavaScript implementation. |
| 5335 __ bind(&slow); | 5340 __ bind(&slow); |
| 5336 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); | 5341 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); |
| 5337 } | 5342 } |
| 5338 | 5343 |
| 5339 | 5344 |
| 5340 #undef __ | 5345 #undef __ |
| 5341 | 5346 |
| 5342 } } // namespace v8::internal | 5347 } } // namespace v8::internal |
| OLD | NEW |