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

Side by Side Diff: src/ppc/macro-assembler-ppc.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/ppc/macro-assembler-ppc.h ('k') | src/s390/assembler-s390.h » ('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_PPC 8 #if V8_TARGET_ARCH_PPC
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/ppc/macro-assembler-ppc.h" 18 #include "src/ppc/macro-assembler-ppc.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 35
35 void MacroAssembler::Jump(Register target) { 36 void MacroAssembler::Jump(Register target) {
36 mtctr(target); 37 mtctr(target);
37 bctr(); 38 bctr();
38 } 39 }
39 40
40 41
(...skipping 4291 matching lines...) Expand 10 before | Expand all | Expand 10 after
4332 } 4333 }
4333 if (mag.shift > 0) srawi(result, result, mag.shift); 4334 if (mag.shift > 0) srawi(result, result, mag.shift);
4334 ExtractBit(r0, dividend, 31); 4335 ExtractBit(r0, dividend, 31);
4335 add(result, result, r0); 4336 add(result, result, r0);
4336 } 4337 }
4337 4338
4338 } // namespace internal 4339 } // namespace internal
4339 } // namespace v8 4340 } // namespace v8
4340 4341
4341 #endif // V8_TARGET_ARCH_PPC 4342 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/macro-assembler-ppc.h ('k') | src/s390/assembler-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698