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

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

Issue 2732273003: Disentangle assembler from isolate. (Closed)
Patch Set: Address feedback. Created 3 years, 9 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') | src/snapshot/serializer.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 #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"
11 #include "src/base/division-by-constant.h" 11 #include "src/base/division-by-constant.h"
12 #include "src/bootstrapper.h" 12 #include "src/bootstrapper.h"
13 #include "src/codegen.h" 13 #include "src/codegen.h"
14 #include "src/debug/debug.h" 14 #include "src/debug/debug.h"
15 #include "src/register-configuration.h" 15 #include "src/register-configuration.h"
16 #include "src/runtime/runtime.h" 16 #include "src/runtime/runtime.h"
17 17
18 #include "src/s390/macro-assembler-s390.h" 18 #include "src/s390/macro-assembler-s390.h"
19 19
20 namespace v8 { 20 namespace v8 {
21 namespace internal { 21 namespace internal {
22 22
23 MacroAssembler::MacroAssembler(Isolate* arg_isolate, void* buffer, int size, 23 MacroAssembler::MacroAssembler(Isolate* isolate, void* buffer, int size,
24 CodeObjectRequired create_code_object) 24 CodeObjectRequired create_code_object)
25 : Assembler(arg_isolate, buffer, size), 25 : Assembler(isolate, buffer, size),
26 generating_stub_(false), 26 generating_stub_(false),
27 has_frame_(false) { 27 has_frame_(false),
28 isolate_(isolate) {
28 if (create_code_object == CodeObjectRequired::kYes) { 29 if (create_code_object == CodeObjectRequired::kYes) {
29 code_object_ = 30 code_object_ =
30 Handle<Object>::New(isolate()->heap()->undefined_value(), isolate()); 31 Handle<Object>::New(isolate_->heap()->undefined_value(), isolate_);
31 } 32 }
32 } 33 }
33 34
34 void MacroAssembler::Jump(Register target) { b(target); } 35 void MacroAssembler::Jump(Register target) { b(target); }
35 36
36 void MacroAssembler::JumpToJSEntry(Register target) { 37 void MacroAssembler::JumpToJSEntry(Register target) {
37 Move(ip, target); 38 Move(ip, target);
38 Jump(ip); 39 Jump(ip);
39 } 40 }
40 41
(...skipping 5419 matching lines...) Expand 10 before | Expand all | Expand 10 after
5460 } 5461 }
5461 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); 5462 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift));
5462 ExtractBit(r0, dividend, 31); 5463 ExtractBit(r0, dividend, 31);
5463 AddP(result, r0); 5464 AddP(result, r0);
5464 } 5465 }
5465 5466
5466 } // namespace internal 5467 } // namespace internal
5467 } // namespace v8 5468 } // namespace v8
5468 5469
5469 #endif // V8_TARGET_ARCH_S390 5470 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/s390/macro-assembler-s390.h ('k') | src/snapshot/serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698