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

Issue 952893006: Take the ScriptOrigin into account for CompileFunctionInContext (Closed)

Created:
5 years, 9 months ago by jochen (gone - plz use gerrit)
Modified:
5 years, 5 months ago
Reviewers:
Yang
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Take the ScriptOrigin into account for CompileFunctionInContext BUG=none R=yangguo@chromium.org LOG=n

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -5 lines) Patch
M src/api.cc View 1 chunk +24 lines, -1 line 0 comments Download
M src/compiler.h View 1 chunk +4 lines, -1 line 0 comments Download
M src/compiler.cc View 3 chunks +12 lines, -3 lines 0 comments Download
M test/cctest/test-compiler.cc View 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
jochen (gone - plz use gerrit)
5 years, 9 months ago (2015-02-25 14:16:52 UTC) #1
jochen (gone - plz use gerrit)
doesn't quite do what I want it to do yet... we need to throw exceptions ...
5 years, 9 months ago (2015-02-25 15:28:14 UTC) #2
yangguo
5 years, 9 months ago (2015-02-25 15:47:19 UTC) #3
On 2015/02/25 15:28:14, jochen (slow) wrote:
> doesn't quite do what I want it to do yet...
> 
> we need to throw exceptions when compilation fails, the function should claim
to
> be a function, not the result of eval, and the line numbers are sometimes
> off....

I think I used the ONLY_FUNCTION_LITERAL as signal that it comes from a function
constructor. If you look at its source, it wraps the function body, so that the
line offsets would be off. Devs complained so that in this case we use -1 as
column offset for correction.

Powered by Google App Engine
This is Rietveld 408576698