Changeset 67939 in webkit for trunk/JavaScriptCore/bytecode


Ignore:
Timestamp:
Sep 21, 2010, 3:55:22 AM (15 years ago)
Author:
[email protected]
Message:

2010-09-21 Xan Lopez <[email protected]>

Reviewed by Martin Robinson.

Fix Opcode stats compilation
https://bugs.webkit.org/show_bug.cgi?id=46079

The FixedArray API had changed, and <stdio.h> was not included for
printf.

  • bytecode/Opcode.cpp: (JSC::OpcodeStats::~OpcodeStats):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecode/Opcode.cpp

    r62367 r67939  
    3030#include "config.h"
    3131#include "Opcode.h"
     32
     33#if ENABLE(OPCODE_STATS)
     34#include <stdio.h>
     35#include <wtf/FixedArray.h>
     36#endif
    3237
    3338using namespace std;
     
    105110    for (int i = 0; i < numOpcodeIDs; ++i)
    106111        sortedIndices[i] = i;
    107     qsort(sortedIndices, numOpcodeIDs, sizeof(int), compareOpcodeIndices);
     112    qsort(sortedIndices.data(), numOpcodeIDs, sizeof(int), compareOpcodeIndices);
    108113   
    109114    pair<int, int> sortedPairIndices[numOpcodeIDs * numOpcodeIDs];
Note: See TracChangeset for help on using the changeset viewer.