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

Side by Side Diff: src/compiler/mips/code-generator-mips.cc

Issue 1942153002: [turbofan] Hook up the shift code stubs with TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/compiler/linkage.h ('k') | src/compiler/mips64/code-generator-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 #include "src/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 } 1933 }
1934 } 1934 }
1935 1935
1936 1936
1937 void CodeGenerator::AssembleJumpTable(Label** targets, size_t target_count) { 1937 void CodeGenerator::AssembleJumpTable(Label** targets, size_t target_count) {
1938 // On 32-bit MIPS we emit the jump tables inline. 1938 // On 32-bit MIPS we emit the jump tables inline.
1939 UNREACHABLE(); 1939 UNREACHABLE();
1940 } 1940 }
1941 1941
1942 1942
1943 void CodeGenerator::AddNopForSmiCodeInlining() {
1944 // Unused on 32-bit ARM. Still exists on 64-bit arm.
1945 // TODO(plind): Unclear when this is called now. Understand, fix if needed.
1946 __ nop(); // Maybe PROPERTY_ACCESS_INLINED?
1947 }
1948
1949
1950 void CodeGenerator::EnsureSpaceForLazyDeopt() { 1943 void CodeGenerator::EnsureSpaceForLazyDeopt() {
1951 if (!info()->ShouldEnsureSpaceForLazyDeopt()) { 1944 if (!info()->ShouldEnsureSpaceForLazyDeopt()) {
1952 return; 1945 return;
1953 } 1946 }
1954 1947
1955 int space_needed = Deoptimizer::patch_size(); 1948 int space_needed = Deoptimizer::patch_size();
1956 // Ensure that we have enough space after the previous lazy-bailout 1949 // Ensure that we have enough space after the previous lazy-bailout
1957 // instruction for patching the code here. 1950 // instruction for patching the code here.
1958 int current_pc = masm()->pc_offset(); 1951 int current_pc = masm()->pc_offset();
1959 if (current_pc < last_lazy_deopt_pc_ + space_needed) { 1952 if (current_pc < last_lazy_deopt_pc_ + space_needed) {
1960 // Block tramoline pool emission for duration of padding. 1953 // Block tramoline pool emission for duration of padding.
1961 v8::internal::Assembler::BlockTrampolinePoolScope block_trampoline_pool( 1954 v8::internal::Assembler::BlockTrampolinePoolScope block_trampoline_pool(
1962 masm()); 1955 masm());
1963 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1956 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1964 DCHECK_EQ(0, padding_size % v8::internal::Assembler::kInstrSize); 1957 DCHECK_EQ(0, padding_size % v8::internal::Assembler::kInstrSize);
1965 while (padding_size > 0) { 1958 while (padding_size > 0) {
1966 __ nop(); 1959 __ nop();
1967 padding_size -= v8::internal::Assembler::kInstrSize; 1960 padding_size -= v8::internal::Assembler::kInstrSize;
1968 } 1961 }
1969 } 1962 }
1970 } 1963 }
1971 1964
1972 #undef __ 1965 #undef __
1973 1966
1974 } // namespace compiler 1967 } // namespace compiler
1975 } // namespace internal 1968 } // namespace internal
1976 } // namespace v8 1969 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/linkage.h ('k') | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698