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

Side by Side Diff: src/code-stubs.cc

Issue 1847543002: Expose a lower bound of malloc'd memory via heap statistics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates 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/builtins.cc ('k') | src/code-stubs-hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 break; 448 break;
449 case CompareICState::GENERIC: 449 case CompareICState::GENERIC:
450 GenerateGeneric(masm); 450 GenerateGeneric(masm);
451 break; 451 break;
452 } 452 }
453 } 453 }
454 454
455 455
456 Handle<Code> TurboFanCodeStub::GenerateCode() { 456 Handle<Code> TurboFanCodeStub::GenerateCode() {
457 const char* name = CodeStub::MajorName(MajorKey()); 457 const char* name = CodeStub::MajorName(MajorKey());
458 Zone zone; 458 Zone zone(isolate()->allocator());
459 CallInterfaceDescriptor descriptor(GetCallInterfaceDescriptor()); 459 CallInterfaceDescriptor descriptor(GetCallInterfaceDescriptor());
460 compiler::CodeStubAssembler assembler(isolate(), &zone, descriptor, 460 compiler::CodeStubAssembler assembler(isolate(), &zone, descriptor,
461 GetCodeFlags(), name); 461 GetCodeFlags(), name);
462 GenerateAssembly(&assembler); 462 GenerateAssembly(&assembler);
463 return assembler.GenerateCode(); 463 return assembler.GenerateCode();
464 } 464 }
465 465
466 void AllocateHeapNumberStub::GenerateAssembly( 466 void AllocateHeapNumberStub::GenerateAssembly(
467 compiler::CodeStubAssembler* assembler) const { 467 compiler::CodeStubAssembler* assembler) const {
468 typedef compiler::Node Node; 468 typedef compiler::Node Node;
(...skipping 2983 matching lines...) Expand 10 before | Expand all | Expand 10 after
3452 if (type->Is(Type::UntaggedPointer())) { 3452 if (type->Is(Type::UntaggedPointer())) {
3453 return Representation::External(); 3453 return Representation::External();
3454 } 3454 }
3455 3455
3456 DCHECK(!type->Is(Type::Untagged())); 3456 DCHECK(!type->Is(Type::Untagged()));
3457 return Representation::Tagged(); 3457 return Representation::Tagged();
3458 } 3458 }
3459 3459
3460 } // namespace internal 3460 } // namespace internal
3461 } // namespace v8 3461 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698