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

Side by Side Diff: src/s390/macro-assembler-s390.cc

Issue 1887003004: S390: Visit the Optimized Code Map on first call rather than closure creation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add knear Created 4 years, 8 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/s390/macro-assembler-s390.h ('k') | no next file » | 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 #include <assert.h> // For assert 5 #include <assert.h> // For assert
6 #include <limits.h> // For LONG_MIN, LONG_MAX. 6 #include <limits.h> // For LONG_MIN, LONG_MAX.
7 7
8 #if V8_TARGET_ARCH_S390 8 #if V8_TARGET_ARCH_S390
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 MemoryChunk::kPointersToHereAreInterestingMask, eq, &done); 493 MemoryChunk::kPointersToHereAreInterestingMask, eq, &done);
494 CheckPageFlag(js_function, scratch, 494 CheckPageFlag(js_function, scratch,
495 MemoryChunk::kPointersFromHereAreInterestingMask, eq, &done); 495 MemoryChunk::kPointersFromHereAreInterestingMask, eq, &done);
496 496
497 const Register dst = scratch; 497 const Register dst = scratch;
498 AddP(dst, js_function, Operand(offset - kHeapObjectTag)); 498 AddP(dst, js_function, Operand(offset - kHeapObjectTag));
499 499
500 // Save caller-saved registers. js_function and code_entry are in the 500 // Save caller-saved registers. js_function and code_entry are in the
501 // caller-saved register list. 501 // caller-saved register list.
502 DCHECK(kJSCallerSaved & js_function.bit()); 502 DCHECK(kJSCallerSaved & js_function.bit());
503 DCHECK(kJSCallerSaved & code_entry.bit()); 503 // DCHECK(kJSCallerSaved & code_entry.bit());
504 MultiPush(kJSCallerSaved | r14.bit()); 504 MultiPush(kJSCallerSaved | code_entry.bit() | r14.bit());
505 505
506 int argument_count = 3; 506 int argument_count = 3;
507 PrepareCallCFunction(argument_count, code_entry); 507 PrepareCallCFunction(argument_count, code_entry);
508 508
509 LoadRR(r2, js_function); 509 LoadRR(r2, js_function);
510 LoadRR(r3, dst); 510 LoadRR(r3, dst);
511 mov(r4, Operand(ExternalReference::isolate_address(isolate()))); 511 mov(r4, Operand(ExternalReference::isolate_address(isolate())));
512 512
513 { 513 {
514 AllowExternalCallThatCantCauseGC scope(this); 514 AllowExternalCallThatCantCauseGC scope(this);
515 CallCFunction( 515 CallCFunction(
516 ExternalReference::incremental_marking_record_write_code_entry_function( 516 ExternalReference::incremental_marking_record_write_code_entry_function(
517 isolate()), 517 isolate()),
518 argument_count); 518 argument_count);
519 } 519 }
520 520
521 // Restore caller-saved registers (including js_function and code_entry). 521 // Restore caller-saved registers (including js_function and code_entry).
522 MultiPop(kJSCallerSaved | r14.bit()); 522 MultiPop(kJSCallerSaved | code_entry.bit() | r14.bit());
523 523
524 bind(&done); 524 bind(&done);
525 } 525 }
526 526
527 void MacroAssembler::RememberedSetHelper(Register object, // For debug tests. 527 void MacroAssembler::RememberedSetHelper(Register object, // For debug tests.
528 Register address, Register scratch, 528 Register address, Register scratch,
529 SaveFPRegsMode fp_mode, 529 SaveFPRegsMode fp_mode,
530 RememberedSetFinalAction and_then) { 530 RememberedSetFinalAction and_then) {
531 Label done; 531 Label done;
532 if (emit_debug_code()) { 532 if (emit_debug_code()) {
(...skipping 4437 matching lines...) Expand 10 before | Expand all | Expand 10 after
4970 } 4970 }
4971 4971
4972 void MacroAssembler::LoadB(Register dst, const MemOperand& mem) { 4972 void MacroAssembler::LoadB(Register dst, const MemOperand& mem) {
4973 #if V8_TARGET_ARCH_S390X 4973 #if V8_TARGET_ARCH_S390X
4974 lgb(dst, mem); 4974 lgb(dst, mem);
4975 #else 4975 #else
4976 lb(dst, mem); 4976 lb(dst, mem);
4977 #endif 4977 #endif
4978 } 4978 }
4979 4979
4980 void MacroAssembler::LoadB(Register dst, Register src) {
4981 #if V8_TARGET_ARCH_S390X
4982 lgbr(dst, src);
4983 #else
4984 lbr(dst, src);
4985 #endif
4986 }
4987
4980 void MacroAssembler::LoadlB(Register dst, const MemOperand& mem) { 4988 void MacroAssembler::LoadlB(Register dst, const MemOperand& mem) {
4981 #if V8_TARGET_ARCH_S390X 4989 #if V8_TARGET_ARCH_S390X
4982 llgc(dst, mem); 4990 llgc(dst, mem);
4983 #else 4991 #else
4984 llc(dst, mem); 4992 llc(dst, mem);
4985 #endif 4993 #endif
4986 } 4994 }
4987 4995
4988 // Load And Test (Reg <- Reg) 4996 // Load And Test (Reg <- Reg)
4989 void MacroAssembler::LoadAndTest32(Register dst, Register src) { 4997 void MacroAssembler::LoadAndTest32(Register dst, Register src) {
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
5416 } 5424 }
5417 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); 5425 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift));
5418 ExtractBit(r0, dividend, 31); 5426 ExtractBit(r0, dividend, 31);
5419 AddP(result, r0); 5427 AddP(result, r0);
5420 } 5428 }
5421 5429
5422 } // namespace internal 5430 } // namespace internal
5423 } // namespace v8 5431 } // namespace v8
5424 5432
5425 #endif // V8_TARGET_ARCH_S390 5433 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/s390/macro-assembler-s390.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698