| 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 3082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3093 __ mov(FieldOperand(ecx, offset), eax); | 3093 __ mov(FieldOperand(ecx, offset), eax); |
| 3094 | 3094 |
| 3095 // Update the write barrier for the array address. | 3095 // Update the write barrier for the array address. |
| 3096 __ RecordWrite(ecx, offset, eax, ebx); | 3096 __ RecordWrite(ecx, offset, eax, ebx); |
| 3097 } | 3097 } |
| 3098 } | 3098 } |
| 3099 } | 3099 } |
| 3100 | 3100 |
| 3101 | 3101 |
| 3102 void CodeGenerator::VisitCatchExtensionObject(CatchExtensionObject* node) { | 3102 void CodeGenerator::VisitCatchExtensionObject(CatchExtensionObject* node) { |
| 3103 ASSERT(!in_spilled_code()); |
| 3103 // Call runtime routine to allocate the catch extension object and | 3104 // Call runtime routine to allocate the catch extension object and |
| 3104 // assign the exception value to the catch variable. | 3105 // assign the exception value to the catch variable. |
| 3105 Comment cmnt(masm_, "[CatchExtensionObject "); | 3106 Comment cmnt(masm_, "[ CatchExtensionObject"); |
| 3106 Load(node->key()); | 3107 Load(node->key()); |
| 3107 Load(node->value()); | 3108 Load(node->value()); |
| 3108 __ CallRuntime(Runtime::kCreateCatchExtensionObject, 2); | 3109 Result result = |
| 3109 frame_->Push(eax); | 3110 frame_->CallRuntime(Runtime::kCreateCatchExtensionObject, 2); |
| 3111 frame_->Push(&result); |
| 3110 } | 3112 } |
| 3111 | 3113 |
| 3112 | 3114 |
| 3113 bool CodeGenerator::IsInlineSmi(Literal* literal) { | 3115 bool CodeGenerator::IsInlineSmi(Literal* literal) { |
| 3114 if (literal == NULL || !literal->handle()->IsSmi()) return false; | 3116 if (literal == NULL || !literal->handle()->IsSmi()) return false; |
| 3115 int int_value = Smi::cast(*literal->handle())->value(); | 3117 int int_value = Smi::cast(*literal->handle())->value(); |
| 3116 return is_intn(int_value, kMaxSmiInlinedBits); | 3118 return is_intn(int_value, kMaxSmiInlinedBits); |
| 3117 } | 3119 } |
| 3118 | 3120 |
| 3119 | 3121 |
| (...skipping 3104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6224 | 6226 |
| 6225 // Slow-case: Go through the JavaScript implementation. | 6227 // Slow-case: Go through the JavaScript implementation. |
| 6226 __ bind(&slow); | 6228 __ bind(&slow); |
| 6227 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); | 6229 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); |
| 6228 } | 6230 } |
| 6229 | 6231 |
| 6230 | 6232 |
| 6231 #undef __ | 6233 #undef __ |
| 6232 | 6234 |
| 6233 } } // namespace v8::internal | 6235 } } // namespace v8::internal |
| OLD | NEW |