| 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_MIPS64 |     7 #if V8_TARGET_ARCH_MIPS64 | 
|     8  |     8  | 
|     9 // Note on Mips implementation: |     9 // Note on Mips implementation: | 
|    10 // |    10 // | 
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   127 #ifdef DEBUG |   127 #ifdef DEBUG | 
|   128   if (strlen(FLAG_stop_at) > 0 && |   128   if (strlen(FLAG_stop_at) > 0 && | 
|   129       info->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |   129       info->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | 
|   130     __ stop("stop-at"); |   130     __ stop("stop-at"); | 
|   131   } |   131   } | 
|   132 #endif |   132 #endif | 
|   133  |   133  | 
|   134   // Sloppy mode functions and builtins need to replace the receiver with the |   134   // Sloppy mode functions and builtins need to replace the receiver with the | 
|   135   // global proxy when called as functions (without an explicit receiver |   135   // global proxy when called as functions (without an explicit receiver | 
|   136   // object). |   136   // object). | 
|   137   if (is_sloppy(info->language_mode()) && !info->is_native()) { |   137   if (is_sloppy(info->language_mode()) && !info->is_native() && | 
 |   138       info->MayUseThis()) { | 
|   138     Label ok; |   139     Label ok; | 
|   139     int receiver_offset = info->scope()->num_parameters() * kPointerSize; |   140     int receiver_offset = info->scope()->num_parameters() * kPointerSize; | 
|   140     __ ld(at, MemOperand(sp, receiver_offset)); |   141     __ ld(at, MemOperand(sp, receiver_offset)); | 
|   141     __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |   142     __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); | 
|   142     __ Branch(&ok, ne, a2, Operand(at)); |   143     __ Branch(&ok, ne, a2, Operand(at)); | 
|   143  |   144  | 
|   144     __ ld(a2, GlobalObjectOperand()); |   145     __ ld(a2, GlobalObjectOperand()); | 
|   145     __ ld(a2, FieldMemOperand(a2, GlobalObject::kGlobalProxyOffset)); |   146     __ ld(a2, FieldMemOperand(a2, GlobalObject::kGlobalProxyOffset)); | 
|   146  |   147  | 
|   147     __ sd(a2, MemOperand(sp, receiver_offset)); |   148     __ sd(a2, MemOperand(sp, receiver_offset)); | 
| (...skipping 5302 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  5450       Assembler::target_address_at(pc_immediate_load_address)) == |  5451       Assembler::target_address_at(pc_immediate_load_address)) == | 
|  5451          reinterpret_cast<uint64_t>( |  5452          reinterpret_cast<uint64_t>( | 
|  5452              isolate->builtins()->OsrAfterStackCheck()->entry())); |  5453              isolate->builtins()->OsrAfterStackCheck()->entry())); | 
|  5453   return OSR_AFTER_STACK_CHECK; |  5454   return OSR_AFTER_STACK_CHECK; | 
|  5454 } |  5455 } | 
|  5455  |  5456  | 
|  5456  |  5457  | 
|  5457 } }  // namespace v8::internal |  5458 } }  // namespace v8::internal | 
|  5458  |  5459  | 
|  5459 #endif  // V8_TARGET_ARCH_MIPS64 |  5460 #endif  // V8_TARGET_ARCH_MIPS64 | 
| OLD | NEW |