| OLD | NEW | 
|     1 // Copyright 2012 the V8 project authors. All rights reserved. |     1 // Copyright 2012 the V8 project authors. All rights reserved. | 
|     2 // Use of this source code is governed by a BSD-style license that can be |     2 // Use of this source code is governed by a BSD-style license that can be | 
|     3 // found in the LICENSE file. |     3 // found in the LICENSE file. | 
|     4  |     4  | 
|     5 #include "src/v8.h" |     5 #include "src/v8.h" | 
|     6  |     6  | 
|     7 #if V8_TARGET_ARCH_MIPS |     7 #if V8_TARGET_ARCH_MIPS | 
|     8  |     8  | 
|     9 // Note on Mips implementation: |     9 // Note on Mips implementation: | 
|    10 // |    10 // | 
| (...skipping 2625 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2636       default: |  2636       default: | 
|  2637         UNREACHABLE(); |  2637         UNREACHABLE(); | 
|  2638     } |  2638     } | 
|  2639   } |  2639   } | 
|  2640  |  2640  | 
|  2641   // prototype |  2641   // prototype | 
|  2642   __ CallRuntime(Runtime::kToFastProperties, 1); |  2642   __ CallRuntime(Runtime::kToFastProperties, 1); | 
|  2643  |  2643  | 
|  2644   // constructor |  2644   // constructor | 
|  2645   __ CallRuntime(Runtime::kToFastProperties, 1); |  2645   __ CallRuntime(Runtime::kToFastProperties, 1); | 
 |  2646  | 
 |  2647   if (is_strong(language_mode())) { | 
 |  2648     __ lw(scratch, | 
 |  2649           FieldMemOperand(v0, JSFunction::kPrototypeOrInitialMapOffset)); | 
 |  2650     __ Push(v0, scratch); | 
 |  2651     // TODO(conradw): It would be more efficient to define the properties with | 
 |  2652     // the right attributes the first time round. | 
 |  2653     // Freeze the prototype. | 
 |  2654     __ CallRuntime(Runtime::kObjectFreeze, 1); | 
 |  2655     // Freeze the constructor. | 
 |  2656     __ CallRuntime(Runtime::kObjectFreeze, 1); | 
 |  2657   } | 
|  2646 } |  2658 } | 
|  2647  |  2659  | 
|  2648  |  2660  | 
|  2649 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { |  2661 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { | 
|  2650   __ mov(a0, result_register()); |  2662   __ mov(a0, result_register()); | 
|  2651   __ pop(a1); |  2663   __ pop(a1); | 
|  2652   Handle<Code> code = |  2664   Handle<Code> code = | 
|  2653       CodeFactory::BinaryOpIC(isolate(), op, strength(language_mode())).code(); |  2665       CodeFactory::BinaryOpIC(isolate(), op, strength(language_mode())).code(); | 
|  2654   JumpPatchSite patch_site(masm_);    // unbound, signals no inlined smi code. |  2666   JumpPatchSite patch_site(masm_);    // unbound, signals no inlined smi code. | 
|  2655   CallIC(code, expr->BinaryOperationFeedbackId()); |  2667   CallIC(code, expr->BinaryOperationFeedbackId()); | 
| (...skipping 2925 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  5581          reinterpret_cast<uint32_t>( |  5593          reinterpret_cast<uint32_t>( | 
|  5582              isolate->builtins()->OsrAfterStackCheck()->entry())); |  5594              isolate->builtins()->OsrAfterStackCheck()->entry())); | 
|  5583   return OSR_AFTER_STACK_CHECK; |  5595   return OSR_AFTER_STACK_CHECK; | 
|  5584 } |  5596 } | 
|  5585  |  5597  | 
|  5586  |  5598  | 
|  5587 }  // namespace internal |  5599 }  // namespace internal | 
|  5588 }  // namespace v8 |  5600 }  // namespace v8 | 
|  5589  |  5601  | 
|  5590 #endif  // V8_TARGET_ARCH_MIPS |  5602 #endif  // V8_TARGET_ARCH_MIPS | 
| OLD | NEW |