Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: c0e70354dbf7
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: f674b09f40d2
Choose a head ref
  • 1 commit
  • 29 files changed
  • 1 contributor

Commits on Aug 9, 2013

  1. src: use v8::String::NewFrom*() functions

    * Change calls to String::New() and String::NewSymbol() to their
      respective one-byte, two-byte and UTF-8 counterparts.
    
    * Add a FIXED_ONE_BYTE_STRING macro that takes a string literal and
      turns it into a v8::Local<v8::String>.
    
    * Add helper functions that make v8::String::NewFromOneByte() easier to
      work with. Said function expects a `const uint8_t*` but almost every
      call site deals with `const char*` or `const unsigned char*`. Helps
      us avoid doing reinterpret_casts all over the place.
    
    * Code that handles file system paths keeps using UTF-8 for backwards
      compatibility reasons. At least now the use of UTF-8 is explicit.
    
    * Remove v8::String::NewSymbol() entirely. Almost all call sites were
      effectively minor de-optimizations. If you create a string only once,
      there is no point in making it a symbol. If you are create the same
      string repeatedly, it should probably be cached in a persistent
      handle.
    bnoordhuis committed Aug 9, 2013
    Copy the full SHA
    f674b09 View commit details
    Browse the repository at this point in the history