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

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

Issue 1423833003: Canonicalize handles for optimized compilation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years, 1 month 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/mips64/macro-assembler-mips64.cc ('k') | src/string-builder.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* arg_isolate, void* buffer, int size)
24 : Assembler(arg_isolate, buffer, size), 24 : Assembler(arg_isolate, buffer, size),
25 generating_stub_(false), 25 generating_stub_(false),
26 has_frame_(false) { 26 has_frame_(false) {
27 if (isolate() != NULL) { 27 if (isolate() != NULL) {
28 code_object_ = 28 code_object_ =
29 Handle<Object>(isolate()->heap()->undefined_value(), isolate()); 29 Handle<Object>::New(isolate()->heap()->undefined_value(), isolate());
30 } 30 }
31 } 31 }
32 32
33 33
34 void MacroAssembler::Jump(Register target) { 34 void MacroAssembler::Jump(Register target) {
35 mtctr(target); 35 mtctr(target);
36 bctr(); 36 bctr();
37 } 37 }
38 38
39 39
(...skipping 4350 matching lines...) Expand 10 before | Expand all | Expand 10 after
4390 } 4390 }
4391 if (mag.shift > 0) srawi(result, result, mag.shift); 4391 if (mag.shift > 0) srawi(result, result, mag.shift);
4392 ExtractBit(r0, dividend, 31); 4392 ExtractBit(r0, dividend, 31);
4393 add(result, result, r0); 4393 add(result, result, r0);
4394 } 4394 }
4395 4395
4396 } // namespace internal 4396 } // namespace internal
4397 } // namespace v8 4397 } // namespace v8
4398 4398
4399 #endif // V8_TARGET_ARCH_PPC 4399 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/string-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698