Changeset 215073 in webkit for trunk/Source/JavaScriptCore


Ignore:
Timestamp:
Apr 6, 2017, 5:26:53 PM (8 years ago)
Author:
[email protected]
Message:

Rename allocateStack to allocateStackByGraphColoring.

Rubber stamped by Saam Barati.

  • CMakeLists.txt:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • b3/air/AirAllocateStack.cpp: Removed.
  • b3/air/AirAllocateStack.h: Removed.
  • b3/air/AirAllocateStackByGraphColoring.cpp: Copied from Source/JavaScriptCore/b3/air/AirAllocateStack.cpp.

(JSC::B3::Air::allocateStackByGraphColoring):
(JSC::B3::Air::allocateStack): Deleted.

  • b3/air/AirAllocateStackByGraphColoring.h: Copied from Source/JavaScriptCore/b3/air/AirAllocateStack.h.
  • b3/air/AirGenerate.cpp:

(JSC::B3::Air::prepareForGeneration):

Location:
trunk/Source/JavaScriptCore
Files:
4 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/CMakeLists.txt

    r214919 r215073  
    7676    b3/air/AirAllocateRegistersByGraphColoring.cpp
    7777    b3/air/AirAllocateRegistersByLinearScan.cpp
    78     b3/air/AirAllocateStack.cpp
     78    b3/air/AirAllocateStackByGraphColoring.cpp
    7979    b3/air/AirArg.cpp
    8080    b3/air/AirBasicBlock.cpp
  • trunk/Source/JavaScriptCore/ChangeLog

    r215072 r215073  
     12017-04-06  Filip Pizlo  <[email protected]>
     2
     3        Rename allocateStack to allocateStackByGraphColoring.
     4
     5        Rubber stamped by Saam Barati.
     6
     7        * CMakeLists.txt:
     8        * JavaScriptCore.xcodeproj/project.pbxproj:
     9        * b3/air/AirAllocateStack.cpp: Removed.
     10        * b3/air/AirAllocateStack.h: Removed.
     11        * b3/air/AirAllocateStackByGraphColoring.cpp: Copied from Source/JavaScriptCore/b3/air/AirAllocateStack.cpp.
     12        (JSC::B3::Air::allocateStackByGraphColoring):
     13        (JSC::B3::Air::allocateStack): Deleted.
     14        * b3/air/AirAllocateStackByGraphColoring.h: Copied from Source/JavaScriptCore/b3/air/AirAllocateStack.h.
     15        * b3/air/AirGenerate.cpp:
     16        (JSC::B3::Air::prepareForGeneration):
     17
    1182017-04-06  Michael Saboff  <[email protected]>
    219
  • trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj

    r215071 r215073  
    935935                0FEC85461BDACDAC0080FF74 /* B3ValueRep.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FEC84FC1BDACDAC0080FF74 /* B3ValueRep.cpp */; };
    936936                0FEC85471BDACDAC0080FF74 /* B3ValueRep.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FEC84FD1BDACDAC0080FF74 /* B3ValueRep.h */; };
    937                 0FEC856D1BDACDC70080FF74 /* AirAllocateStack.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FEC85481BDACDC70080FF74 /* AirAllocateStack.cpp */; };
    938                 0FEC856E1BDACDC70080FF74 /* AirAllocateStack.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FEC85491BDACDC70080FF74 /* AirAllocateStack.h */; };
     937                0FEC856D1BDACDC70080FF74 /* AirAllocateStackByGraphColoring.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FEC85481BDACDC70080FF74 /* AirAllocateStackByGraphColoring.cpp */; };
     938                0FEC856E1BDACDC70080FF74 /* AirAllocateStackByGraphColoring.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FEC85491BDACDC70080FF74 /* AirAllocateStackByGraphColoring.h */; };
    939939                0FEC856F1BDACDC70080FF74 /* AirArg.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FEC854A1BDACDC70080FF74 /* AirArg.cpp */; };
    940940                0FEC85701BDACDC70080FF74 /* AirArg.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FEC854B1BDACDC70080FF74 /* AirArg.h */; };
     
    34843484                0FEC84FC1BDACDAC0080FF74 /* B3ValueRep.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = B3ValueRep.cpp; path = b3/B3ValueRep.cpp; sourceTree = "<group>"; };
    34853485                0FEC84FD1BDACDAC0080FF74 /* B3ValueRep.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = B3ValueRep.h; path = b3/B3ValueRep.h; sourceTree = "<group>"; };
    3486                 0FEC85481BDACDC70080FF74 /* AirAllocateStack.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AirAllocateStack.cpp; path = b3/air/AirAllocateStack.cpp; sourceTree = "<group>"; };
    3487                 0FEC85491BDACDC70080FF74 /* AirAllocateStack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AirAllocateStack.h; path = b3/air/AirAllocateStack.h; sourceTree = "<group>"; };
     3486                0FEC85481BDACDC70080FF74 /* AirAllocateStackByGraphColoring.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AirAllocateStackByGraphColoring.cpp; path = b3/air/AirAllocateStackByGraphColoring.cpp; sourceTree = "<group>"; };
     3487                0FEC85491BDACDC70080FF74 /* AirAllocateStackByGraphColoring.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AirAllocateStackByGraphColoring.h; path = b3/air/AirAllocateStackByGraphColoring.h; sourceTree = "<group>"; };
    34883488                0FEC854A1BDACDC70080FF74 /* AirArg.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AirArg.cpp; path = b3/air/AirArg.cpp; sourceTree = "<group>"; };
    34893489                0FEC854B1BDACDC70080FF74 /* AirArg.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AirArg.h; path = b3/air/AirArg.h; sourceTree = "<group>"; };
     
    55745574                                0F2AC5681E8A0BD10001EE3F /* AirAllocateRegistersByLinearScan.cpp */,
    55755575                                0F2AC5691E8A0BD10001EE3F /* AirAllocateRegistersByLinearScan.h */,
    5576                                 0FEC85481BDACDC70080FF74 /* AirAllocateStack.cpp */,
    5577                                 0FEC85491BDACDC70080FF74 /* AirAllocateStack.h */,
     5576                                0FEC85481BDACDC70080FF74 /* AirAllocateStackByGraphColoring.cpp */,
     5577                                0FEC85491BDACDC70080FF74 /* AirAllocateStackByGraphColoring.h */,
    55785578                                0FEC854A1BDACDC70080FF74 /* AirArg.cpp */,
    55795579                                0FEC854B1BDACDC70080FF74 /* AirArg.h */,
     
    80908090                                0F55F0F514D1063C00AC7649 /* AbstractPC.h in Headers */,
    80918091                                5370B4F61BF26205005C40FC /* AdaptiveInferredPropertyValueWatchpointBase.h in Headers */,
    8092                                 0FEC856E1BDACDC70080FF74 /* AirAllocateStack.h in Headers */,
     8092                                0FEC856E1BDACDC70080FF74 /* AirAllocateStackByGraphColoring.h in Headers */,
    80938093                                0FEC85701BDACDC70080FF74 /* AirArg.h in Headers */,
    80948094                                0F64EAF31C4ECD0600621E9B /* AirArgInlines.h in Headers */,
     
    99839983                                0F55F0F414D1063900AC7649 /* AbstractPC.cpp in Sources */,
    99849984                                5370B4F51BF26202005C40FC /* AdaptiveInferredPropertyValueWatchpointBase.cpp in Sources */,
    9985                                 0FEC856D1BDACDC70080FF74 /* AirAllocateStack.cpp in Sources */,
     9985                                0FEC856D1BDACDC70080FF74 /* AirAllocateStackByGraphColoring.cpp in Sources */,
    99869986                                0FEC856F1BDACDC70080FF74 /* AirArg.cpp in Sources */,
    99879987                                0FEC85711BDACDC70080FF74 /* AirBasicBlock.cpp in Sources */,
  • trunk/Source/JavaScriptCore/b3/air/AirAllocateStackByGraphColoring.cpp

    r215072 r215073  
    2525
    2626#include "config.h"
    27 #include "AirAllocateStack.h"
     27#include "AirAllocateStackByGraphColoring.h"
    2828
    2929#if ENABLE(B3_JIT)
     
    132132} // anonymous namespace
    133133
    134 void allocateStack(Code& code)
     134void allocateStackByGraphColoring(Code& code)
    135135{
    136     PhaseScope phaseScope(code, "allocateStack");
     136    PhaseScope phaseScope(code, "allocateStackByGraphColoring");
    137137
    138138    // Allocate all of the escaped slots in order. This is kind of a crazy algorithm to allow for
  • trunk/Source/JavaScriptCore/b3/air/AirAllocateStackByGraphColoring.h

    r215072 r215073  
    11/*
    2  * Copyright (C) 2015-2016 Apple Inc. All rights reserved.
     2 * Copyright (C) 2015-2017 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    3535// order and then it allocates the rest using first fit. Takes the opportunity to kill dead
    3636// assignments to stack slots, since it knows which ones are live. Also fixes ZDefs to anonymous
    37 // stack slots.
     37// stack slots. Also coalesces spill slots whenever possible.
     38//
     39// This is meant to be an optimal stack allocator, focused on generating great code. It's not
     40// particularly fast, though.
    3841
    39 void allocateStack(Code&);
     42void allocateStackByGraphColoring(Code&);
    4043
    4144} } } // namespace JSC::B3::Air
  • trunk/Source/JavaScriptCore/b3/air/AirGenerate.cpp

    r214901 r215073  
    3131#include "AirAllocateRegistersByGraphColoring.h"
    3232#include "AirAllocateRegistersByLinearScan.h"
    33 #include "AirAllocateStack.h"
     33#include "AirAllocateStackByGraphColoring.h"
    3434#include "AirCode.h"
    3535#include "AirEliminateDeadCode.h"
     
    117117    // this by first-fit allocating stack slots. It should be pretty darn close to optimal, so we
    118118    // shouldn't have to worry about this very much.
    119     allocateStack(code);
     119    allocateStackByGraphColoring(code);
    120120   
    121121    // If we coalesced moves then we can unbreak critical edges. This is the main reason for this
Note: See TracChangeset for help on using the changeset viewer.