Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: src/ic/mips64/handler-compiler-mips64.cc

Issue 1334793004: MIPS64: Add big-endian support for mips64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase ToT. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/base/build_config.h ('k') | src/ic/mips64/ic-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/ic/call-optimization.h" 7 #include "src/ic/call-optimization.h"
8 #include "src/ic/handler-compiler.h" 8 #include "src/ic/handler-compiler.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 354
355 355
356 void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition, 356 void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition,
357 Register map_reg, 357 Register map_reg,
358 Register scratch, 358 Register scratch,
359 Label* miss) { 359 Label* miss) {
360 Handle<WeakCell> cell = Map::WeakCellForMap(transition); 360 Handle<WeakCell> cell = Map::WeakCellForMap(transition);
361 DCHECK(!map_reg.is(scratch)); 361 DCHECK(!map_reg.is(scratch));
362 __ LoadWeakValue(map_reg, cell, miss); 362 __ LoadWeakValue(map_reg, cell, miss);
363 if (transition->CanBeDeprecated()) { 363 if (transition->CanBeDeprecated()) {
364 __ ld(scratch, FieldMemOperand(map_reg, Map::kBitField3Offset)); 364 __ lwu(scratch, FieldMemOperand(map_reg, Map::kBitField3Offset));
365 __ And(at, scratch, Operand(Map::Deprecated::kMask)); 365 __ And(at, scratch, Operand(Map::Deprecated::kMask));
366 __ Branch(miss, ne, at, Operand(zero_reg)); 366 __ Branch(miss, ne, at, Operand(zero_reg));
367 } 367 }
368 } 368 }
369 369
370 370
371 void NamedStoreHandlerCompiler::GenerateConstantCheck(Register map_reg, 371 void NamedStoreHandlerCompiler::GenerateConstantCheck(Register map_reg,
372 int descriptor, 372 int descriptor,
373 Register value_reg, 373 Register value_reg,
374 Register scratch, 374 Register scratch,
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 // Return the generated code. 781 // Return the generated code.
782 return GetCode(kind(), Code::NORMAL, name); 782 return GetCode(kind(), Code::NORMAL, name);
783 } 783 }
784 784
785 785
786 #undef __ 786 #undef __
787 } // namespace internal 787 } // namespace internal
788 } // namespace v8 788 } // namespace v8
789 789
790 #endif // V8_TARGET_ARCH_MIPS64 790 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/base/build_config.h ('k') | src/ic/mips64/ic-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698